-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automatically update seed phrase size (#1099)
Automatically detect the length of a pasted seed phrase and adjust the selected format accordingly. If the size of the seed phrase does not match any predefined formats, the wallet will select the format that best fits the number of words. ### Examples - If the user pastes a `13-word` seed phrase, the wallet will select the `15-word` format and leave 2 blank inputs. - If the user pastes a `24-word` seed phrase, it will select the `24-word` format and fill out all inputs. - In cases where the size of the seed phrase exceeds the largest supported format or is smaller than the smallest supported format, appropriate handling is implemented to ensure consistent behavior. Additionally, this PR includes support for `multi-line paste`, allowing users to input seed phrases with each word on a separate line. | `13-words` | `24-words` | |--------|--------| | <video src="https://github.com/FuelLabs/fuels-wallet/assets/7074983/979beac7-7663-44c4-a1e0-65ab6811cc94" /> | <video src="https://github.com/FuelLabs/fuels-wallet/assets/7074983/931014ea-af9c-4707-88bf-6e2924f6946c" /> |
- Loading branch information
1 parent
15358f5
commit 82fba09
Showing
3 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'fuels-wallet': minor | ||
--- | ||
|
||
Automatically identify seed phrase length and update the selected format to fit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters