Skip to main content

New answers tagged

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()
Patrick Collins's user avatar
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 ...
Patrick Collins's user avatar
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)
Patrick Collins's user avatar

Top 50 recent answers are included