Use different error message for invalid seed restore (#2029)

cyan committed Feb 13, 2025 at 07:39 UTC f98dd7dd7a7b527af6f24717d21ea67f940ccaca
1 file changed +5
cw_monero/lib/api/wallet_manager.dart
+5
@@ -116,6 +116,11 @@ void restoreWalletFromSeedSync(
116
117 if (status != 0) {
118 final error = monero.Wallet_errorString(newWptr);
119 + if (error.contains('word list failed verification')) {
120 + throw WalletRestoreFromSeedException(
121 + message: "Seed verification failed, please make sure you entered the correct seed with the correct words order",
122 + );
123 + }
124 throw WalletRestoreFromSeedException(message: error);
125 }
126 wptr = newWptr;