0xKitsune / Foundry-Vyper

A Foundry template to compile and test Vyper contracts.
173 stars 29 forks source link

VyperDeployer could not deploy contract with vyper > 0.3.7 #7

Closed r4VP4 closed 1 year ago

r4VP4 commented 1 year ago

I tried several combinations (using pyenv for the different python versions): python 3.9.15 vyper 0.3.7: worked for me! python 3.10.12 vyper 0.3.7: worked for me! python 3.10.12 vyper 0.3.8: forge test --> [FAIL. Reason: Setup failed: VyperDeployer could not deploy contract] python 3.10.12 vyper 0.3.9: forge test --> [FAIL. Reason: Setup failed: VyperDeployer could not deploy contract] python 3.11.4 vyper 0.3.8: forge test --> [FAIL. Reason: Setup failed: VyperDeployer could not deploy contract] python 3.11.4 vyper 0.3.9: forge test --> [FAIL. Reason: Setup failed: VyperDeployer could not deploy contract]

seems vyper > 0.3.7 isn't working

pcaversaccio commented 1 year ago

FWIW, my forked VyperDeployer is extensively tested and works smoothly.

0xKitsune commented 1 year ago

Thanks for linking your fork @pcaversaccio. This repo needs to be updated and I would recommend using snekmate's VyperDeployer at the moment.

pcaversaccio commented 1 year ago

For anyone landing in this issue, I upgraded snekmate's VyperDeployer further, to allow for configuration of the EVM version: https://github.com/pcaversaccio/snekmate/pull/161. Please note that since Vyper version 0.3.8, the default EVM version is shanghai.