New answers tagged vyper
0
votes
When testing a vyper contract in moccasin/titanoboa, how do you expect a revert?
Use with boa.reverts
import boa
def test_revert():
with boa.reverts("my revert error"):
my_contract.func()
0
votes
Accepted
What does a minimal ERC-1967 proxy in vyper look like?
Like this:
Note: It doesn't 100% follow the spec, but it's close enough.
# pragma version 0.4.0
"""
@title ERC1967 Proxy Contract
@author Your Name
@notice This contract implements an ...
2
votes
Accepted
How to send ETH in a titanoboa transaction
You'd do as your example shows. The value is a keyword argument in a titanoboa transaction.
weth.deposit(value = 7)
Top 50 recent answers are included
Related Tags
vyper × 158solidity × 34
contract-development × 19
python × 13
uniswap × 7
brownie × 7
truffle × 6
titanoboa × 6
remix × 4
contract-design × 4
evm × 4
web3.py × 4
contract-debugging × 4
arrays × 4
moccasin × 4
web3js × 3
erc-20 × 3
contract-deployment × 3
nft × 3
ganache × 3
storage × 3
testing × 3
mapping × 3
struct × 3
go-ethereum × 2