Skip to content
Snippets Groups Projects
Commit 4625fa1d authored by poka's avatar poka
Browse files

fix the fix

parent 3f75fa5c
No related branches found
No related tags found
No related merge requests found
Pipeline #15962 failed
...@@ -272,7 +272,7 @@ class GenerateWalletsProvider with ChangeNotifier { ...@@ -272,7 +272,7 @@ class GenerateWalletsProvider with ChangeNotifier {
return _wordsList; return _wordsList;
} }
bool isBipWord(String word) { bool isBipWord(String word, [bool checkRedondance = true]) {
bool isValid = false; bool isValid = false;
notifyListeners(); notifyListeners();
...@@ -284,9 +284,8 @@ class GenerateWalletsProvider with ChangeNotifier { ...@@ -284,9 +284,8 @@ class GenerateWalletsProvider with ChangeNotifier {
if (bip39Words(appLang).contains(word.toLowerCase())) { if (bip39Words(appLang).contains(word.toLowerCase())) {
for (var bipWord in bip39Words(appLang)) { for (var bipWord in bip39Words(appLang)) {
if (bipWord.startsWith(word)) { if (bipWord.startsWith(word)) {
log.d('ploppp : ' + nbrMatch.toString());
isValid = nbrMatch == 0 ? true : false; isValid = nbrMatch == 0 ? true : false;
nbrMatch = nbrMatch + 1; if (checkRedondance) nbrMatch = nbrMatch + 1;
} }
} }
} }
...@@ -363,7 +362,7 @@ class GenerateWalletsProvider with ChangeNotifier { ...@@ -363,7 +362,7 @@ class GenerateWalletsProvider with ChangeNotifier {
cellController11 cellController11
]; ];
for (var word in sentence!.text!.split(' ')) { for (var word in sentence!.text!.split(' ')) {
bool isValid = isBipWord(word); bool isValid = isBipWord(word, false);
if (isValid) { if (isValid) {
cells[nbr].text = word; cells[nbr].text = word;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment