Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 10, 2025
1 parent a2d6c63 commit 6f11204
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/unitary/contracts/abi/test_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
import boa
from boa import BoaError
from boa.contracts.abi.abi_contract import ABIContractFactory, ABIFunction
from boa.util.abi import Address
from boa.util.abi import Address, abi_decode


def test_abi_decode():
# test for vendored eth-stdlib fix. can be removed once the following
# PR is merged + released:
# https://github.com/skellet0r/eth-stdlib/pull/22
bytez = b"\x00" * 33
val = abi_decode("(uint256)", bytez)
assert val == (0,)


def load_via_abi(code, name="test contract"):
Expand Down

0 comments on commit 6f11204

Please sign in to comment.