-
I tried all the solutions proposed in the discussion #440 and am still unable to resolve the error const tx = {
nonce: 0,
gasPrice: 20000000000,
gasLimit: 463682,
to: null,
value: 0,
data: "0x60...",
chainId: 1377,
};
const sentTxResponse = await wallet.sendTransaction(tx);
await sentTxResponse.wait(1);
the error is: |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Jul 12, 2022
Replies: 2 comments 5 replies
-
Update: I tried getting the chainId from const chainId = await wallet.getChainId(); and put chainId: chainId it worked!! |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected
-
Two solutions: First is to correct your chainId - which is wrong. It should either be 31337 or 1337. Second is to use a getter function to get chainId Hope this helps! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: I tried getting the chainId from
and put
it worked!!