Skip to content

Commit

Permalink
test: add test for dynamic-sized struct in calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Oct 10, 2020
1 parent 86c8efc commit c4e5ffe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/parser/exceptions/test_argument_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,31 @@ def foo():
for i in range(1, 2, 3, 4):
pass
""",
"""
struct Foo:
a: Bytes[32]
@external
def foo(a: Foo):
pass
""",
"""
struct Foo:
a: String[32]
@external
def foo(a: Foo):
pass
""",
"""
struct Foo:
b: uint256
a: String[32]
@external
def foo(a: Foo):
pass
""",
]


Expand Down

0 comments on commit c4e5ffe

Please sign in to comment.