Skip to content

Add support for other account types.#252

Merged
benoitdevos merged 1 commit intomainfrom
feature/manage-other-accounts
Apr 17, 2024
Merged

Add support for other account types.#252
benoitdevos merged 1 commit intomainfrom
feature/manage-other-accounts

Conversation

@benoitdevos
Copy link
Contributor

@benoitdevos benoitdevos commented Apr 17, 2024

  • Add support for other account types
  • Add method fromUnknown() - aiming at detecting account type from address.
  • Provide strong validation of Bech32 addresses - otherwise almost any dummy addresses were accepted as valid Bech32 addresses. (using bitcoinjs/bech32)
  • Provide a stronger validation for Polkadot addresses - for some reasons the previous implementation using validateAddress() used to validate addresses that were later on unable to decode. The new implementation is strongly inspired from checkAddress()

logion-network/logion-internal#1216

@benoitdevos benoitdevos requested a review from gdethier April 17, 2024 10:51
@benoitdevos benoitdevos changed the title Add support for other account types; validate Bech32 addresses. Add support for other account types. Apr 17, 2024
Copy link
Contributor

@gdethier gdethier left a comment

Choose a reason for hiding this comment

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

Good job!

@benoitdevos benoitdevos merged commit 60e93bd into main Apr 17, 2024
@benoitdevos benoitdevos deleted the feature/manage-other-accounts branch April 17, 2024 12:15
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