Lesson 5: Can't Deploy Running into Issue #5648
-
Following the same implementation using Ganache! Here is my Deploy.js code:
Runnin into issue:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Make sure your |
Beta Was this translation helpful? Give feedback.
-
@KarthickSakthi Please leave your repository, never seen this error. |
Beta Was this translation helpful? Give feedback.
-
//to fix this issue simply specify a gas limit
const deploymentOptions = {
gasLimit: 2000000
}
const contract = await contractFactory.deploy(deploymentOptions)
this error is because the estimateGas method cannot accurately determine the gas required for the transaction., manually specifying the gas limit when using genache can fix this. Hope this helps.. |
Beta Was this translation helpful? Give feedback.
-
Thanks @TEE2DWHY , will check and let you know! |
Beta Was this translation helpful? Give feedback.
this error is because the estimateGas method cannot accurately determine the gas required for the transaction., manually specifying the gas limit when using genache can fix this. Hope this helps..