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

Support ABIv2 "Tuple" Type #10

Open
laalaguer opened this issue Oct 28, 2021 · 0 comments · May be fixed by #12
Open

Support ABIv2 "Tuple" Type #10

laalaguer opened this issue Oct 28, 2021 · 0 comments · May be fixed by #12

Comments

@laalaguer
Copy link
Contributor

Since v0.6.0 solidity compiler supports complex input-ouput params of functions using structures.
Now many tools like Truffle can compile and generate and test complex params functions.

This is so-called ABIv2 support.

We need to support that too in thor-devkit.py, and here is the information that developer should know:

Background:
What is tuple type in ABIv2:
https://docs.soliditylang.org/en/v0.5.3/abi-spec.html#handling-tuple-types

Currently we rely on eth-abi library to build the abi.Function module.

How do we fix the:

  1. abi.Function.encode(params_list)
  2. abi.Function.decode(bytes)

Is eth-abi supporting it? Or can we switch to a new library to support us.

@sterliakov sterliakov linked a pull request May 16, 2022 that will close this 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

Successfully merging a pull request may close this issue.

1 participant