Skip to content

Deploying ganache-local w/brownie: VM Exception while processing transaction: invalid opcode #422

Answered by JasonDHubbard
GratefulDave asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

I was able to solve the problems mentioned above in my environment.

Resolution

Both the "ValueError: Gas estimation failed: 'execution reverted: VM Exception while processing transaction: invalid opcode'" error and the getEntranceFee() return value problem was resolved in my local environment by changing the "Hard Fork" property in the Ganache UI app from "Petersburg" to "Muir Glacier". In the Ganachi UI app, go to Settings > Chain > HARDFORK.

I do not know why the "Petersburg" hardfork does not work.

fund_and_withdraw.py also required "gas_limit" being passed to fund_me.withdraw. If I remember right, that was due to changes in new versions of web.py. It is possible you may not need t…

Replies: 16 comments 35 replies

Comment options

You must be logged in to vote
5 replies
@GratefulDave
Comment options

@cromewar
Comment options

@GratefulDave
Comment options

@GratefulDave
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cromewar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cromewar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@cromewar
Comment options

@GratefulDave
Comment options

@GratefulDave
Comment options

@cromewar
Comment options

@GratefulDave
Comment options

Comment options

You must be logged in to vote
3 replies
@AnneCh
Comment options

@GratefulDave
Comment options

@AnneCh
Comment options

Comment options

You must be logged in to vote
4 replies
@AnneCh
Comment options

@GratefulDave
Comment options

@cromewar
Comment options

@GratefulDave
Comment options

Comment options

You must be logged in to vote
1 reply
@GratefulDave
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cromewar
Comment options

@AnneCh
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
4 replies
@cromewar
Comment options

@GratefulDave
Comment options

@GratefulDave
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
4 replies
@cromewar
Comment options

@JasonDHubbard
Comment options

@PatrickAlphaC
Comment options

@RohanNero
Comment options

Answer selected by cromewar
Comment options

You must be logged in to vote
3 replies
@PatrickAlphaC
Comment options

@cromewar
Comment options

@strudelPie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants