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

X-Address Encoding in Issued Currencies #113

Merged
merged 3 commits into from
Feb 4, 2021
Merged

Conversation

natenichols
Copy link
Contributor

@natenichols natenichols commented Dec 4, 2020

High Level Overview of Change

Handle the case when issued currencies have an X-address in the issuer.

Context of Change

We handle the two cases where X addresses can have destination tags in STObject. For the rest of the AccountIDs, if we receive an X address then it cannot have a tag associated with it. This PR implements this functionality in the AccountID::fromBase58

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

Adds two tests to test this functionality

Copy link

@amiecorso amiecorso left a comment

Choose a reason for hiding this comment

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

niiiiiice, thanks Nathan

@natenichols natenichols merged commit d70c28b into master Feb 4, 2021
@natenichols natenichols deleted the x-address-issuer branch February 4, 2021 20:24
ledhed2222 pushed a commit that referenced this pull request Oct 13, 2021
* feat(account): allow issued currency to use x-address
intelliot referenced this pull request in XRPLF/xrpl.js Oct 18, 2023
* feat(account): allow issued currency to use x-address
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.

3 participants