-
Notifications
You must be signed in to change notification settings - Fork 8
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
Validate hex seed in case activate account #3474
Conversation
Can you please update the PR description with the new changes? and explanation would be great addition. |
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.
verified creating account from hex with the 0x and without it, all works fine.
great job ya Samar, just few suggestions
const mnemonicValue = validateMnemonic(mnemonic.value) | ||
? mnemonic.value | ||
: mnemonic.value.length === 66 | ||
? mnemonic.value | ||
: `0x${mnemonic.value}`; |
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.
should we use if/else if ? i think it will be more readable
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.
I think it's good, less code, and the results depend on the previous one. it's fine.
@AhmedHanafy725 what do you think ?
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.
it's fine but what confuses me is the variable name, it can be mnemonic or hex seed
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.
activated two accounts, one with 0x prefix and another without, both works fine
Description
Changes
Screencast.from.26-09-24.16.39.33.webm
Related Issues
Tested Scenarios
0x
in the beginning and activate the account.Checklist