titanoboa
titanoboa copied to clipboard
bug: arrays are returned as tuples
Calling foo()
returns (1, 2, 3)
instead of [1, 2, 3]
.
@external
def foo() -> uint256[3]:
return [1, 2, 3]
>>> boa.loads("@external\ndef foo() -> uint256[3]:\n\treturn [1,2,3]\n")
<VyperContract at 0x0000000000000000000000000000000000000067, compiled with vyper-0.3.8+847849c5>
>>> a = boa.loads("@external\ndef foo() -> uint256[3]:\n\treturn [1,2,3]\n")
>>> a.foo()
(1, 2, 3)
What version of eth-abi is this?
I tried with both 3.0.1
and the master
branch.
Tracking upstream: https://github.com/ethereum/eth-abi/issues/192
please reopen if still an issue