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

Re-write encoder #34

Merged
merged 19 commits into from
May 27, 2020
Merged

Conversation

ayrat555
Copy link
Collaborator

@ayrat555 ayrat555 commented May 21, 2020

The latest version introduced a couple of bugs to the encoding/decoding of dynamic types. This PR tries to fix those bugs and also makes encoder a little bit cleaner

Fixes #22
Fixes #30

Changes:

  • Fix decoding of dynamic arrays and tuples
  • Re-write encoder. support dynamic arrays and tuples
  • Decode and encode result in every test

@ayrat555 ayrat555 marked this pull request as ready for review May 23, 2020 09:06
@ayrat555 ayrat555 mentioned this pull request May 25, 2020
Copy link
Collaborator

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ayrat555 I've started the review and found at least 2 wrong ABI encoded strings in the changed tests. I suppose we shouldn't change responses for existing tests because as fas as I know they are correct and checked with the stable ABI encoding JS library.

lib/abi.ex Show resolved Hide resolved
lib/abi.ex Show resolved Hide resolved
@ayrat555 ayrat555 requested a review from vbaranov May 25, 2020 09:02
@ayrat555 ayrat555 mentioned this pull request May 25, 2020
@vbaranov vbaranov merged commit 87c62cc into poanetwork:master May 27, 2020
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 this pull request may close these issues.

parsing regression Dynamic types encoding doesn't conform to spec
2 participants