Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Conversation

natenichols
Copy link
Contributor

High Level Overview of Change

Fixes #132.

When rippled decodes Uint64's, it removes leading zeros. This causes issues when encoding JSON objects with ripple-binary-codec.

Context of Change

This PR allows for Uint64's to be hex strings with length 0-16, and then pads leading zeros up to length 16.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Testing

Adds tests for ledger entries described in #132

@natenichols natenichols requested a review from intelliot June 8, 2021 19:22
Copy link
Contributor

@intelliot intelliot left a comment

Choose a reason for hiding this comment

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

LGTM

@natenichols natenichols merged commit a3e67a7 into master Jun 8, 2021
@natenichols natenichols deleted the uint64-parse-hex branch June 8, 2021 23:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some objects can not be encoded, resulting in "not valid hex" error.
2 participants