We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import * as thor from "@vechain/web3-providers-connex"; import { ethers } from "ethers"; import { BrowserProvider, Wallet } from "ethers"; import { Driver, SimpleNet, SimpleWallet } from "@vechain/connex-driver"; import { Framework } from "@vechain/connex-framework"; const wa = new SimpleWallet(); wa.import(wallet.privateKey); const net = new SimpleNet(conf.rpcURL); const driver = await Driver.connect(net); const connexObj = new Framework(driver); const provider = thor.ethers.modifyProvider( new ethers.BrowserProvider( new thor.Provider({ connex: connexObj, wallet: wa, net: net, }), ), ); const contract = Bridge__factory.connect("0x7111eb5f8d9dA472e9608f2ab3De275C040D60B2", new Wallet(wallet.privateKey).connect(provider)); contract.addValidator("0x...", [{ signerAddress: '0x...', signature: '0x...' }])
while calling the above function on contract getting error:
Error: could not coalesce error (error={ "code": -32000, "message": "400 post transactions: raw: rlp: expected input list for []*tx.Clause, de..." }, payload={ "id": 31, "jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": [ "0xf9036280808301fc4c947111eb5f8d9da472e9608f2ab3de275c040d60b280b902e43a7dc80600000000000000000000000024f483550d222269d91f072702f2592ae503ea870000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a307841303146353963383135426664343935453930303234303765444363353130663937456663363246000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e3f6aef9ac02eadcf6fd72ff18d4d3d8b85523f270d95f2254bd35ddab70436a0dda03f97cab09c6b98f2897c70b67c22e6ee589eef99840dd0f3dd95a656fe61b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a307832346634383335353064323232323639643931463037323730326632353932616535303365613837000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041bbc0f130d297e9b6fb694b37e8c22caeebfa5644b88ba6ca90c4201561c2ca7e27bfd5ae605b6d89d0cf7d282c32c35e2b9c7d7e13986cdd278daf189a87bff01b000000000000000000000000000000000000000000000000000000000000009c16579c78e178c93404e93d0d0ee43613da5c2b32fe8cca6d64176272a068328126b099590fc0f5536d807d665e866b14c65d4dee61e3f1ff27bd46e541a05cd53e3325715e185efefddfbc1cd30be491db452acea0a08a98c37ff0732747" ] }, code=UNKNOWN_ERROR, version=6.13.2) at makeError (/home/user/Documents/Projects/decentralized-bridge-validator/node_modules/ethers/lib.commonjs/utils/errors.js:129:21) at BrowserProvider.getRpcError (/home/user/Documents/Projects/decentralized-bridge-validator/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:730:41) at BrowserProvider.getRpcError (/home/user/Documents/Projects/decentralized-bridge-validator/node_modules/ethers/lib.commonjs/providers/provider-browser.js:70:22) at /home/user/Documents/Projects/decentralized-bridge-validator/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js:302:45 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: 'UNKNOWN_ERROR', error: { code: -32000, message: '400 post transactions: raw: rlp: expected input list for []*tx.Clause, de...' }, payload: { method: 'eth_sendRawTransaction', params: [ '0xf9036280808301fc4c947111eb5f8d9da472e9608f2ab3de275c040d60b280b902e43a7dc80600000000000000000000000024f483550d222269d91f072702f2592ae503ea870000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a307841303146353963383135426664343935453930303234303765444363353130663937456663363246000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041e3f6aef9ac02eadcf6fd72ff18d4d3d8b85523f270d95f2254bd35ddab70436a0dda03f97cab09c6b98f2897c70b67c22e6ee589eef99840dd0f3dd95a656fe61b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002a307832346634383335353064323232323639643931463037323730326632353932616535303365613837000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041bbc0f130d297e9b6fb694b37e8c22caeebfa5644b88ba6ca90c4201561c2ca7e27bfd5ae605b6d89d0cf7d282c32c35e2b9c7d7e13986cdd278daf189a87bff01b000000000000000000000000000000000000000000000000000000000000009c16579c78e178c93404e93d0d0ee43613da5c2b32fe8cca6d64176272a068328126b099590fc0f5536d807d665e866b14c65d4dee61e3f1ff27bd46e541a05cd53e3325715e185efefddfbc1cd30be491db452acea0a08a98c37ff0732747' ], id: 31, jsonrpc: '2.0' }, shortMessage: 'could not coalesce error' }
Versions: "@vechain/web3-providers-connex": "^1.1.2", "@vechain/connex-driver": "^2.0.8", "@vechain/connex-framework": "^2.0.8", "ethers": "^6.11.1",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
while calling the above function on contract getting error:
Versions:
"@vechain/web3-providers-connex": "^1.1.2",
"@vechain/connex-driver": "^2.0.8",
"@vechain/connex-framework": "^2.0.8",
"ethers": "^6.11.1",
The text was updated successfully, but these errors were encountered: