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

Invalid encode of string #16

Open
PavelVesnin opened this issue Jun 15, 2018 · 2 comments
Open

Invalid encode of string #16

PavelVesnin opened this issue Jun 15, 2018 · 2 comments

Comments

@PavelVesnin
Copy link

Invalid encoding result.
ABI.encode("getVerificationContract(string)", ["test"]) |> Base.encode16(case: :lower)
Expected:

0x8575e5a5000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000

Returned

8575e5a500000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000
@zoltanmaric
Copy link

@PavelVesnin have you found any workaround for the issue?

@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

3 participants