Hi!
I am getting "TypeError: transaction chainId mismatch" error while deploying raw transaction to local Ganache.
I tried changing chainId to 31377 and 5777 and changing local Ganache blockchain NETWORK ID to 31377 and 5777. Still getting same error.
I'd appreciate your help.
TypeError: transaction chainId mismatch (argument="tx.chainId", value=1377, code=INVALID_ARGUMENT, version=6.7.1)
at makeError (D:\WEB3\node_modules\ethers\lib.commonjs\utils\errors.js:118:21)
at assert (D:\WEB3\node_modules\ethers\lib.commonjs\utils\errors.js:142:15)
at assertArgument (D:\WEB3\node_modules\ethers\lib.commonjs\utils\errors.js:154:5)
at Wallet.populateTransaction (D:\WEB3\node_modules\ethers\lib.commonjs\providers\abstract-signer.js:78:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Wallet.sendTransaction (D:\WEB3\node_modules\ethers\lib.commonjs\providers\abstract-signer.js:182:21)
at async main (D:\WEB3\deploy.js:38:4) {
code: 'INVALID_ARGUMENT',
argument: 'tx.chainId',
value: 1377
}
Hi! I am getting "TypeError: transaction chainId mismatch" error while deploying raw transaction to local Ganache. I tried changing
chainId
to 31377 and 5777 and changing local Ganache blockchainNETWORK ID
to 31377 and 5777. Still getting same error. I'd appreciate your help.My deploy.js code:
Error code: