Skip to content

Commit

Permalink
Expect lists
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Mar 22, 2024
1 parent 9b757c0 commit d791e51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/functional/builtins/codegen/test_abi_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def abi_decode_struct(x: Bytes[544]) -> Human:
args = tuple([human_tuple[0]] + list(human_tuple[1]))
human_t = "((string,(string,address,int128,bool,fixed168x10,uint256[3],bytes32)))"
human_encoded = abi.encode(human_t, (human_tuple,))
assert tuple(c.abi_decode_struct(human_encoded)) == (
assert tuple(c.abi_decode_struct(human_encoded)) == [
"foobar",
("vyper", TEST_ADDR, 123, True, Decimal("123.4"), [123, 456, 789], test_bytes32),
)
]


@pytest.mark.parametrize(
Expand Down
4 changes: 3 additions & 1 deletion tests/functional/builtins/codegen/test_create_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def should_fail(target: address, arg1: String[129], arg2: Bar):
self.created_address = create_from_blueprint(target, arg1, arg2)
"""
FOO = "hello!"
BAR = ("world!",)
BAR = [
"world!",
]

# deploy a foo so we can compare its bytecode with factory deployed version
foo_contract = get_contract(code, FOO, BAR)
Expand Down

0 comments on commit d791e51

Please sign in to comment.