diff --git a/lib/pages/settings_views/global_settings_view/stack_backup_views/sub_widgets/restoring_wallet_card.dart b/lib/pages/settings_views/global_settings_view/stack_backup_views/sub_widgets/restoring_wallet_card.dart index 3e762e177..1e99a1a4b 100644 --- a/lib/pages/settings_views/global_settings_view/stack_backup_views/sub_widgets/restoring_wallet_card.dart +++ b/lib/pages/settings_views/global_settings_view/stack_backup_views/sub_widgets/restoring_wallet_card.dart @@ -117,7 +117,12 @@ class _RestoringWalletCardState extends ConsumerState { if (coin == Coin.firo) { maxUnusedAddressGap = 50; } - const maxNumberOfIndexesToCheck = 1000; + + int maxNumberOfIndexesToCheck = 1000; + // If Bitcoin Cash, multiply by 100. + if (coin == Coin.bitcoincash) { + maxNumberOfIndexesToCheck *= 100; + } if (mnemonicList.isEmpty) { await manager.recoverFromMnemonic( @@ -262,7 +267,12 @@ class _RestoringWalletCardState extends ConsumerState { if (coin == Coin.firo) { maxUnusedAddressGap = 50; } - const maxNumberOfIndexesToCheck = 1000; + + int maxNumberOfIndexesToCheck = 1000; + // If Bitcoin Cash, multiply by 100. + if (coin == Coin.bitcoincash) { + maxNumberOfIndexesToCheck *= 100; + } if (mnemonicList.isEmpty) { await manager.recoverFromMnemonic(