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

Handles the edge case where UInt64 is constructed from string '0'.

Context of Change

When constructing UInt64 with.from(), this adds an edge case when the parameter is of type string where UInt64.from('0') returnsUInt64.from(0).

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

Test Plan

Added test coverage for this case.

@natenichols natenichols requested a review from intelliot March 9, 2021 21:05
@intelliot
Copy link
Contributor

Looks good... could we also add a test case that uses some realistic-ish data from rippled?

Since this is covering a case that only occurs as of rippled v1.7.0+

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.

Awesome

@natenichols natenichols merged commit d81cfc1 into master Mar 10, 2021
@natenichols natenichols deleted the zero-edge-case branch March 10, 2021 17:36
ledhed2222 pushed a commit that referenced this pull request Oct 13, 2021
* fix: edge case constructing from string '0'
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.

2 participants