-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with require() #11
Comments
When reverts happens you will get a: |
Thanks. I haven't tried this directly with Geth, but it seems that the web3.js library with which I am currently trying this out won't return the |
Solved, was only an issue with ganache, works with geth + web3. |
Thanks for writing in, please share a link if you have any code samples or your own project. |
@fulldecent will do |
Firstly thanks for putting the resources of live testing using
estimateGas()
together.My question: Is there a way to retrieve the current blocks gasLimit in case of encountering a
revert()
in the gas estimation if the contract to be tested only usesrevert()
instead ofassert()
? I tried to make it work locally in truffle with web3 1.0, but this only seems to work when the deployed contract actually usesassert()
, which is rarely the case these days due to the gas refund property ofrequire()
. Based on my current understanding one would have to redeploy the contracts to be tested and use assert() instead of require().Thanks for your help!
The text was updated successfully, but these errors were encountered: