Open mhorsley30896 opened 1 year ago
Hey, this sounds interesting. I will look into this further.
Vyper's default currently is "paris". I don't believe brownie or ganache supports that. I found this works fine in my case (set in brownie config):
compiler:
evm_version: berlin
What about solidity? It should also be able to select paris.
Environment information
brownie
Version: 1.19.1vyper
Version: 0.3.6What was wrong?
brownie defaults to compiling with
evm_version = "istanbul"
forvyper
https://github.com/eth-brownie/brownie/blob/73bb8c02fc4c4f54ea7fca232045a71a8f965d59/brownie/project/compiler/__init__.py#L183
this version is now behind the one used by default for the
vyper
compilerthis causes
brownie compile
andvyper
compilation bytecode to be different, causing issues with source code verificationHow can it be fixed?
Instead of hardcoding the
evm_version
read the version used by the installedvyper
version