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

Decoding function arguments from data for dynamic types #32

Open
roynalnaruto opened this issue Aug 23, 2019 · 1 comment
Open

Decoding function arguments from data for dynamic types #32

roynalnaruto opened this issue Aug 23, 2019 · 1 comment

Comments

@roynalnaruto
Copy link

I was trying to get the function arguments for a function with bytes32[] as the argument type.

ABI.decode goes into an infinite loop.

Is this not supported yet?

The command I tried:

ABI.decode("myTempFunction(bytes32[],bytes32[])", "4251d89700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000176a5ced4b86db8f44cb702405947e3d0b672980608810bb4d922702bbe1809440000000000000000000000000000000000000000000000000000000000000001e1ba3868e0fb3c2af6ad53db380ac069165eb51ae5b6f5ea3f574c2f79b81a08" |> Base.decode16!(case: :lower))
@ayrat555
Copy link
Member

A couple of months ago I re-wrote encoder and decoder of abi n https://github.com/poanetwork/ex_abi . it should be fixed there

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