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

Fix Payment source & destination types #870

Merged
merged 1 commit into from
Mar 20, 2018
Merged

Conversation

darkmemo
Copy link
Collaborator

Payment source and destination are defined as intersection types, Adjustment & MaxAdjustment and Adjustment & MinAdjustment respectively. But they should be union types instead. This problem was introduced during js to ts conversion.

Fixes #866

Payment `source` and `destination` are defined as intersection types,  `Adjustment & MaxAdjustment` and  `Adjustment & MinAdjustment` respectively. But they should be union types instead. This problem was introduced during js to ts conversion.
@intelliot intelliot requested a review from FredKSchott March 19, 2018 18:45
Copy link
Contributor

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

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

Oh wow, yea lots of casting needed. That's probably why I accidentally changed it to & :)

This looks great, and I think there's some TS magic we can do on top of it to clean it up even more.

@intelliot intelliot merged commit a72041a into XRPLF:develop Mar 20, 2018
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.

3 participants