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

Create toBech32 and fromBech32 in @cosmjs/encoding #1053

Closed
4 tasks done
webmaster128 opened this issue Feb 21, 2022 · 0 comments · Fixed by #1058
Closed
4 tasks done

Create toBech32 and fromBech32 in @cosmjs/encoding #1053

webmaster128 opened this issue Feb 21, 2022 · 0 comments · Fixed by #1058
Assignees
Milestone

Comments

@webmaster128
Copy link
Member

webmaster128 commented Feb 21, 2022

Using classes for namespacing as we do in Bech32.encode/Bech32.decode is bad practice in JavaScript. Both should become free functions.

  • Create toBech32 and fromBech32
  • Implement Bech32.encode and Bech32.decode using the functions above for backwards compatibility
  • Deprecare Bech32.encode, Bech32.decode and Bech32
  • Add CHANGELOG entry
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 a pull request may close this issue.

2 participants