Lesson 15: Error: cannot estimate gas; transaction may fail or may require manual gas limit #2166
-
Help required ! When I deploy on localhost hardhat , working fine When I deployed on the rinkeby running scripts, its also fine , but when I do this from frontend side of Next.js it throws this error
Here is the repo: https://github.com/shoaibshebi/hardhat-nft-marketplace-backend I have changed code a lot as working on the enhanced features Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
you can manually set gasLimit to your transaction this way |
Beta Was this translation helpful? Give feedback.
-
@shoaibshebi add a manual gas like this: rinkeby: {
url: process.env.RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 4,
blockConfirmations: 6,
gas: 6000000,
}, |
Beta Was this translation helpful? Give feedback.
-
Hey @shoaibshebi |
Beta Was this translation helpful? Give feedback.
@shoaibshebi add a manual gas like this: