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

Add as_ conversions to the Address struct #30

Merged
merged 1 commit into from
Mar 28, 2022
Merged

Conversation

SebastienGllmt
Copy link
Contributor

Currently you can convert between address types doing, for example, RewardAddress.from_address(...)

A design philosophy during the CSL days was there should only be one way to do this. This was to avoid duplication of work when converting Yoroi code to Yoroi Mobile code which required native bindings.

However, this limitation is no longer required so we should add useful helper functions like this

Copy link
Contributor

@rooooooooob rooooooooob left a comment

Choose a reason for hiding this comment

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

LGTM

@SebastienGllmt SebastienGllmt merged commit 553ba85 into develop Mar 28, 2022
@SebastienGllmt SebastienGllmt deleted the as-address-type branch March 28, 2022 22:31
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.

2 participants