Lesson18, Error: cannot estimate gas #1604
Unanswered
gingercatLovesHerWife
asked this question in
Q&A
Replies: 1 comment 2 replies
-
To remove Try adding |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into this error when I am trying to deploy governor contract. [1:06:46:49]
Below is my code.
Then, I ran into this error.
Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="Transaction reverted: trying to deploy a contract whose code is too large", method="estimateGas", transaction={"from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","data":"0x6101606040523...
I added the estimatedGasLimit argument with the initial amount 1000. The Error changed:
Error: insufficient funds for intrinsic transaction cost [ See: https://links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={}, method="estimateGas", transaction={"from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","gasLimit":{"type":"BigNumber","hex":"0x03e8"},"data":"0x61016...
But as I manually increased the argument, the error message chaged back to "cannot estimate gas" as showed before.
Beta Was this translation helpful? Give feedback.
All reactions