Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

estimategas throws uncatchable exception #506

Closed
sirpy opened this issue Oct 29, 2019 · 5 comments
Closed

estimategas throws uncatchable exception #506

sirpy opened this issue Oct 29, 2019 · 5 comments

Comments

@sirpy
Copy link

sirpy commented Oct 29, 2019

happens on ganache 6.7.0
downgrading to 6.6.0 solves the issue
found that the issue happens if in web3js constructor i pass defaults with
defaultGas: 140000,
removing it also solves the issue on 6.7.0

@nicholasjpaterno
Copy link
Contributor

nicholasjpaterno commented Oct 29, 2019

@sirpy Thanks for reporting this! Is it possible to post reproducible steps? Or a minimal viable contract that seems to cause this? I don't seem to have any issues with my generic contract with web3js.

@sirpy
Copy link
Author

sirpy commented Oct 29, 2019

are you using the "defaultGas" in constructor not overriding it when defining contract?
Its a complex set of contracts so i dont think i can produce a minimal viable contract.
i'll try to setup a one click repo with the contracts to reproduce it

@nicholasjpaterno
Copy link
Contributor

nicholasjpaterno commented Feb 11, 2020

@sirpy we've changed some things with estimation, can you confirm that this is still an issue on ganache-core@latest?

@sirpy
Copy link
Author

sirpy commented Mar 29, 2020

@nicholasjpaterno
Hey, i dont recall what was the exact issue,
I tried upgrading to latest ganache-cli but local unit test for estimate gas fails with:
Error: Node error: {"message":"VM Exception while processing transaction: out of gas","code":-32000,"data":{"stack":"c: VM Exception while processing transaction: out of gas

on ganache 6.6.0 it works fine

@davidmurdoch
Copy link
Member

Closing for issue maintenance. If this is still an issue after trying it with latest or the latest beta releases, please comment and I'll reopen it. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants