Lesson 7 : brownie.exceptions.VirtualMachineError: revert #970
-
what is the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
Hello @Krishduttm
|
Beta Was this translation helpful? Give feedback.
-
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. 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. |
Beta Was this translation helpful? Give feedback.
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.