-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: do not lower address for non-EVM accounts during account creation #90
Conversation
We are adding the `SolAccountType` to support Solana account creation. --------- Co-authored-by: Charly Chevalier <[email protected]>
713e38b
to
38a0c5a
Compare
@metamaskbot publish-previews |
Preview builds have been published. See these instructions (from the Expand for full list of packages and versions.
|
The base branch was changed.
throw new Error(`Account address '${account.address}' already exists`); | ||
const address = normalizeAccountAddress(account); | ||
if (await this.#callbacks.addressExists(address)) { | ||
throw new Error(`Account address '${address}' already exists`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this was a mistake, I should have used account.address
here. Now the error message uses the "normalized" address, which might be different than the one in account
.
Some non-EVM account's addresses might be case-sensitive like Solana.
We didn't have any issue with Bitcoin native segwit addresses (since they are lower-case already), but to avoid introducing this "lower-case" behavior everywhere we will only modify the address for EVM accounts.
cc: @aganglada