Replies: 1 comment
-
@qafoori bro, check which chainId you are using. I mean which you set goerli eth, polygon matic. check If you set polygon and currently you are using eth goerli then you get this error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have written a smart contract that works perfectly on remix IDE. But when I try to use it on my application using ether.js, ether.js throws this error:
contract:
usage:
I used the
getEthereumContract
function with another contract that mints NFTs. It works perfectly with that contract.I made sure that
provider.getCode()
returns the correct result and my contract is deployed correctly.Check out some live examples here
Beta Was this translation helpful? Give feedback.
All reactions