Replies: 2 comments
-
Does your constructor have any reverts? This indicates an error during simulation of your contract deployment. Does it call to an external contract? The constructor is likely where the issue lies… |
Beta Was this translation helpful? Give feedback.
-
Hi @amol9372, thanks for creating this issue. I had this same issue and fixed it. Basically, because of newer versions being released, things also behave differently. So to achieve the same results in the Tutorial, there are 2 things I have done: 1. *Use SOLC version 0.8.7-fixed (which was the same version used in the tutorial)Edit
Then, update the packages (files in
And of course, use the same solidity version in your Solidity Contract file:
(Just in case the error still persists or it requires higher gasLimit, like 2. Set a higher gas limit.
Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
6.6.1
Search Terms
estimateGas, CALL_EXCEPTION, ganache
Describe the Problem
I am trying to deploy a contract to a local ganache network using Nodejs v20. Nodejs is able to connect with local Ganache but the
deploy()
method is giving following error:Error: missing revert data (action="estimateGas", data=null, reason=null, transaction={ "data": "0x608060405234801561000f575f8....", "from": "0xfeBaeDDecD30....", "to": null }, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.6.1)
It is trying to call this
eth_estimateGas
function and it fails. I am usingsolcjs
to compile the Solidity contract using the commandsolcjs --bin --abi SimpleStorage.sol
These are the versions:
Code Snippet
Contract ABI
Errors
Environment
node.js (v12 or newer)
Environment (Other)
Local ganache
Beta Was this translation helpful? Give feedback.
All reactions