mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Use different error message for invalid seed restore (#2029)
This commit is contained in:
@@ -116,6 +116,11 @@ void restoreWalletFromSeedSync(
|
||||
|
||||
if (status != 0) {
|
||||
final error = monero.Wallet_errorString(newWptr);
|
||||
if (error.contains('word list failed verification')) {
|
||||
throw WalletRestoreFromSeedException(
|
||||
message: "Seed verification failed, please make sure you entered the correct seed with the correct words order",
|
||||
);
|
||||
}
|
||||
throw WalletRestoreFromSeedException(message: error);
|
||||
}
|
||||
wptr = newWptr;
|
||||
|
||||
Reference in New Issue
Block a user