diff --git a/lib/main.dart b/lib/main.dart index 7bb8f98d8debce0cb1aa9c3e9671e32e636015bd..9ae14938b89de6e4b5a699c8f115f1a5a3f450c8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -73,12 +73,11 @@ Future<void> main() async { g1WalletsBox = await Hive.openBox<G1WalletsList>("g1WalletsBox"); await _homeProvider.getValidEndpoints(); + // await configBox.delete('isCacheChecked'); // log.d(await configBox.get('endpoint')); HttpOverrides.global = MyHttpOverrides(); - - if (kReleaseMode && enableSentry) { // CatcherOptions debugOptions = CatcherOptions(DialogReportMode(), [ // SentryHandler(SentryClient(SentryOptions( diff --git a/lib/providers/generate_wallets.dart b/lib/providers/generate_wallets.dart index b0176ff59a242fcf0152bea502e705a507df5a2a..763fc9349e281295cd7414888cea51ebd497bf7d 100644 --- a/lib/providers/generate_wallets.dart +++ b/lib/providers/generate_wallets.dart @@ -283,7 +283,7 @@ class GenerateWalletsProvider with ChangeNotifier { // Needed for bad encoding of UTF-8 word = word.replaceAll('é', 'eÌ'); word = word.replaceAll('è', 'eÌ€'); - return bip39Words(appLang).contains(word); + return bip39Words(appLang).contains(word.toLowerCase()); } bool isBipWordsList(List<String> words) { @@ -292,7 +292,7 @@ class GenerateWalletsProvider with ChangeNotifier { // Needed for bad encoding of UTF-8 word = word.replaceAll('é', 'eÌ'); word = word.replaceAll('è', 'eÌ€'); - if (!bip39Words(appLang).contains(word)) { + if (!bip39Words(appLang).contains(word.toLowerCase())) { isValid = false; } } diff --git a/lib/providers/wallet_options.dart b/lib/providers/wallet_options.dart index 7f3f33df62aa34e0aac618ff866accbe85aada2e..df905a2296f56e5eff8838c03a3f65ea6f946fa0 100644 --- a/lib/providers/wallet_options.dart +++ b/lib/providers/wallet_options.dart @@ -233,7 +233,7 @@ class WalletOptionsProvider with ChangeNotifier { } Future changePinCacheChoice() async { - bool isCacheChecked = configBox.get('isCacheChecked') ?? true; + bool isCacheChecked = configBox.get('isCacheChecked') ?? false; await configBox.put('isCacheChecked', !isCacheChecked); notifyListeners(); } diff --git a/lib/screens/myWallets/restore_chest.dart b/lib/screens/myWallets/restore_chest.dart index f87601fce58061647e6f2590bff613602933fc81..212e7b3d262d604bb17d3b9b4896082daff328e8 100644 --- a/lib/screens/myWallets/restore_chest.dart +++ b/lib/screens/myWallets/restore_chest.dart @@ -180,7 +180,7 @@ class RestoreChest extends StatelessWidget { textInputAction: TextInputAction.next, onChanged: (v) { bool isValid = generateWalletProvider.isBipWord(v); - + if (isValid) cellCtl.text = cellCtl.text.toLowerCase(); if (isValid && generateWalletProvider.cellController11.text.isEmpty) { FocusScope.of(context).nextFocus(); } diff --git a/lib/screens/myWallets/unlocking_wallet.dart b/lib/screens/myWallets/unlocking_wallet.dart index e5749e19e44d67e4f61bbb21f77afb701ea2ec95..0237aa3d4a9422065bb5b561530c8af3a95adc94 100644 --- a/lib/screens/myWallets/unlocking_wallet.dart +++ b/lib/screens/myWallets/unlocking_wallet.dart @@ -38,7 +38,7 @@ class UnlockingWallet extends StatelessWidget { currentChest = chestBox.get(currentChestNumber)!; if (configBox.get('isCacheChecked') == null) { - configBox.put('isCacheChecked', true); + configBox.put('isCacheChecked', false); } int _pinLenght = _walletOptions.getPinLenght(wallet!.number);