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

Derive coin type in split and merge coin API #517

Merged
merged 1 commit into from
Feb 22, 2022
Merged

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Feb 22, 2022

When splitting and merging coins in the Client API, we could derive the actual coin type by looking inside the type parameter of the coin struct tag.
Made the function a public static API of Coin, and added a few checks to make sure it's really a Coin type.

@lxfind lxfind linked an issue Feb 22, 2022 that may be closed by this pull request
@lxfind lxfind force-pushed the add-join-split-coin branch 3 times, most recently from 9fd53bd to d16ab89 Compare February 22, 2022 17:17
@lxfind lxfind force-pushed the add-join-split-coin branch from d16ab89 to 052b8bf Compare February 22, 2022 23:04
@lxfind lxfind merged commit b5c3a78 into main Feb 22, 2022
@lxfind lxfind deleted the add-join-split-coin branch February 22, 2022 23:30
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.

[client] Support combining coins
2 participants