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

Allow bech32 String to be moved out of AccountId #301

Merged
merged 1 commit into from Nov 1, 2022

Conversation

de-husk
Copy link
Contributor

@de-husk de-husk commented Oct 29, 2022

All of the cosmos-sdk proto types use Strings for the account addresses: ex.

I know there is the AsRef<str> and fmt::Display impls, but I wanted a way to move the bech32 String out of the AccountId instead of having to allocate a new String each time.

Let me know if you think there's a better way.

@tony-iqlusion tony-iqlusion merged commit 2dc9c71 into cosmos:main Nov 1, 2022
@tony-iqlusion
Copy link
Member

Thanks!

@de-husk de-husk deleted the de-husk/account_id-into-string branch November 2, 2022 01:26
@tony-iqlusion tony-iqlusion mentioned this pull request Nov 8, 2022
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.

None yet

2 participants