Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: arrays are returned as tuples #21

Closed
tserg opened this issue Oct 3, 2022 · 4 comments
Closed

bug: arrays are returned as tuples #21

tserg opened this issue Oct 3, 2022 · 4 comments

Comments

@tserg
Copy link
Contributor

tserg commented Oct 3, 2022

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)
@charles-cooper
Copy link
Member

What version of eth-abi is this?

@tserg
Copy link
Contributor Author

tserg commented Oct 4, 2022

I tried with both 3.0.1 and the master branch.

@charles-cooper
Copy link
Member

Tracking upstream: ethereum/eth-abi#192

@charles-cooper
Copy link
Member

please reopen if still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants