Skip to content

Lesson 8 : inpage.js:1 MetaMask - RPC Error: [ethjs-query] #2007

Answered by krakxn
ameeetgaikwad asked this question in Q&A
Discussion options

You must be logged in to vote

Going by sheer memory here, but pretty sure the chainId is 1337 for Metamask specifically.

EDIT: Found the problem (lies in ethAmount), use this instead: const ethAmount = document.getElementById("ethAmount").value

Note for the above: the ID in the html file should be ethAmount for the above to work, or whatever you see fit, but both the IDs should match

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ameeetgaikwad
Comment options

@krakxn
Comment options

@ameeetgaikwad
Comment options

@krakxn
Comment options

Answer selected by ameeetgaikwad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants