Replies: 1 comment 1 reply
-
Yes Sir, also on the course the version used is 3.4.0 ;) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was scratching my head for about 10 minutes until I realized that I was looking at the wrong version of a contract.
What happened was that I have my solidity remapping configured in VSC for a different version than under my project.
example
In your projects
brownie-config.yaml
you have the following remapping:@openzeppelin=OpenZeppelin/[email protected]
and in VSC > solidity > remappings (which helps linting) you have this:
result
If you now ctrl+click on the class or function in your code, the code of the OpenZeppelin version 4.2.0 will be opened.
Just be aware of that, whenever you think something along the lines: "This can't be, this contract doesn't even have this method..."
In my case, it was the method _setTokenURI() which was "outsourced" in the newer versions.
Beta Was this translation helpful? Give feedback.
All reactions