-
Notifications
You must be signed in to change notification settings - Fork 166
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: seed recovery validation and unlock fix #467
Conversation
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.
Working well (tested with Ethereum e2e)
Not sure what to do with that debounce honestly. If you can't manage to make it work I'd remove it all together, all it does now is delay the response by 200ms.
setIsSeedValid(validateSeed(inputSeedPhrase, bip39)); | ||
}) | ||
.catch(() => setIsSeedValid(inputSeedPhrase, false)); | ||
const debouncedAddressGeneration = debounce(addressGeneration, 200); |
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.
This debounce isn't working. I remember struggling a lot with it in the past (in screens/AccountRecover.js
).
To verify what I said, add a console.log
in addressGeneration
, you'll see that it's printed at every key stroke. I couldn't manage to make it work in a reasonable time in this component though :(.
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.
true, let me have a try.
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.
updated, in debounce.js
we create new instance of timeout
at each call of debounce
, so that it is not cleared.
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.
Great! didn't test again but that's a nit :)
closes #461 .
tested with brain wallet seed with extra space: