Skip to content

Lesson 7 : brownie.exceptions.VirtualMachineError: revert #970

Answered by n4n0b1t3
Krishduttm asked this question in Q&A
Discussion options

You must be logged in to vote

when walking backward from your error through your code I come to only one transaction which can revert.

Since you are using the mainnet-fork, try to dissect your code by opening a new *.py file and only use the minimum code necessary to test the correct workings of the AggregatorV3Interface(_priceFeedAddress) transaction.

I also noticed that you have an outdated Brownie version. The current version is 1.18.1.
Please look at: #1110
and: #1109

The whole setup might be a little cumbersome the first time, but you can eliminate a lot of potential errors which have nothing to do with your code, by just implementing this approach.

Replies: 2 comments 15 replies

Comment options

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

@Krishduttm
Comment options

@sheahwen
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
11 replies
@jslim89
Comment options

@cromewar
Comment options

@jslim89
Comment options

@dRoysch
Comment options

@cromewar
Comment options

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