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

fix: private key validation #78

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Conversation

taro04
Copy link
Contributor

@taro04 taro04 commented Apr 18, 2022

@YasunoriMATSUOKA
Please review.

Fixed a code that didn't work as intended when entering the appropriate private key (like 1234).
Currently, it is detected that it is not Uint8Array, but Uint8Array with a length of 0 is returned,
So, it has been modified to check the length of Uint8Array.

if (!validatePrivateStoredWallet(privateWallet)) {
this.snackBar.open('Invalid Wallet info!', 'Close');
return;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

privateWallet contains privateWallet.privateKey
So, I think it is better to check privateWallet.privateKey first

Copy link
Contributor

@YasunoriMATSUOKA YasunoriMATSUOKA left a comment

Choose a reason for hiding this comment

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

LGTM

@YasunoriMATSUOKA YasunoriMATSUOKA changed the title feat: wrong private key snackber fix: private key validation Apr 19, 2022
@YasunoriMATSUOKA YasunoriMATSUOKA merged commit 8a100bf into develop Apr 19, 2022
@YasunoriMATSUOKA YasunoriMATSUOKA deleted the feature/wrong-privkey branch April 19, 2022 03:27
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