-
Notifications
You must be signed in to change notification settings - Fork 181
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
feat: refactor native wallet support with better encryption #398
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/shapeshift/web/AgyPVh1qztUyLxSuta9UpwyQ4tRB |
eebc3d8
to
5cb9f61
Compare
5cb9f61
to
3b3bd2f
Compare
</ModalHeader> | ||
<ModalBody> | ||
<Text mb={6} color='gray.500' translation={'walletProvider.shapeShift.nativePasswd.body'} /> | ||
<Text mb={6} color='gray.500' translation={'walletProvider.shapeShift.password.body'} /> | ||
<form onSubmit={handleSubmit(onSubmit)}> |
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 would probably be a decent idea to make this component revocable as well... would suck if someone could pull the password itself out of react state history.
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 don't think there's such a think as "state history". Once the component is unmounted, the state is gone, not just hidden.
src/context/WalletProvider/NativeWallet/components/NativeLoad.tsx
Outdated
Show resolved
Hide resolved
</ModalHeader> | ||
<ModalBody> | ||
<Text mb={6} color='gray.500' translation={'walletProvider.shapeShift.password.body'} /> | ||
<form onSubmit={handleSubmit(onSubmit)}> |
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.
same here -- maybe we make this revocable too
The missing |
Correction -- part of the issue is fixed in |
src/context/WalletProvider/NativeWallet/components/NativeLoad.tsx
Outdated
Show resolved
Hide resolved
Screen.Recording.2021-11-17.at.9.16.59.AM.movafter a page refresh |
7a8c371
to
0f806d7
Compare
Lots of things look good about it. One issue is that on the second switch wallet I get a white screen of death. I'll look at the console next time. But I load the site, connect Native - good, then connect MM - good, then switch to Native - blows up. Also load site, connect KK - good, connect MM - good, switch to KK - blows up. It always blows up on the second time you switch wallets. |
e649d5a
to
0f38798
Compare
Fixed |
Co-authored-by: kevin <35275952+kaladinlight@users.noreply.github.com>
Description
Notice
Before submitting a pull request, please make sure you have answered the following:
Pull Request Type
Issue (if applicable)
closes #376
closes #6
Testing
Screenshots
Pairing screen
Load Wallet
Password Prompt
Create a Wallet
Backup Phrase Test
Saving/Encrypting Wallet