Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
contributed by @cyberthirst

---------

Co-authored-by: cyberthirst <[email protected]>
  • Loading branch information
charles-cooper and cyberthirst committed Jun 12, 2024
1 parent f544102 commit 7653155
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/functional/builtins/codegen/test_abi_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,3 +1421,23 @@ def foo(a:Bytes[1000]):

with tx_failed():
c.foo(_abi_payload_from_tuple(payload))


# returndatasize check for uint256
def test_returndatasize_check(get_contract, tx_failed):
code = """
@external
def bar():
pass
interface A:
def bar() -> uint256: nonpayable
@external
def run() -> uint256:
return extcall A(self).bar()
"""
c = get_contract(code)

with tx_failed():
c.run()

0 comments on commit 7653155

Please sign in to comment.