Error: cannot estimate gas #422
Replies: 3 comments
-
If Ethers.js can't estimate gas, it usually means that something is failing in the smart contract function you're calling, including any other functions which your smart contract calls as part of the transaction. Can you share the Solidity part of your NFT buy flow? |
Beta Was this translation helpful? Give feedback.
-
This is a generic error for when a |
Beta Was this translation helpful? Give feedback.
-
It's likely that the NFT marketplace isn't approved... This is a generic error so it's a little hard to debug as such. You could add some console.logs to the function to see where it's failing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making nft marketplace. When I am trying to buy nft I am getting this error.
I know it's asking for gas limit but I have tried. How much gas limit it want??
I even tried passing gas limit when calling buyItem function
I am using ropsten network. My sell function is working very well but this error is only coming with buy function.
Code ..
What can I do plz tell me? Help me @PatrickAlphaC
Beta Was this translation helpful? Give feedback.
All reactions