Lesson 7 : Error "Call the contract method without broadcasting a transaction." #306
-
Can you help me with this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi irwing I wonder why are you importing the contracts from node_modules instead of @chainlink? regarding to the Virtual machine error it seams is has to be with your |
Beta Was this translation helpful? Give feedback.
-
Hello Irwing the error is the following your are importing the dependencies:
- smartcontractkit/[email protected]
compiler:
solc:
remappings:
- '@chainlink=smartcontractkit/[email protected]' If you check the github of chainlink-brownie-contracts version 1.1.1 you will notice there is not a version 0.8: https://github.com/smartcontractkit/chainlink-brownie-contracts/tree/1.1.1 So the solution is, to change the version you are importing from 1.1.1 to 0.2.2 and this should work. |
Beta Was this translation helpful? Give feedback.
Hello Irwing the error is the following your are importing the
AggregatorV3Interface
in version 0.8 and on yourbrownie-config.yaml
you are using the dependency on version 1.1.1:If you check the github of chainlink-brownie-contracts version 1.1.1 you will notice there is not a version 0.8:
https://github.com/smartcontractkit/chainlink-brownie-contracts/tree/1.1.1
So the solution is, to change the version you are importing from 1.1.1 to 0.2.2 and this should work.