await wallet name check [skip ci]

This commit is contained in:
OmarHatem
2025-12-30 15:27:47 +01:00
parent cf72c0b6a9
commit 934b50da62
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -97,7 +97,7 @@ class WalletCreationService {
}
Future<WalletBase> restoreFromKeys(WalletCredentials credentials, {bool? isTestnet}) async {
checkIfExists(credentials.name);
await checkIfExists(credentials.name);
if (credentials.password == null) {
credentials.password = generateWalletPassword();
@@ -116,7 +116,7 @@ class WalletCreationService {
}
Future<WalletBase> restoreFromSeed(WalletCredentials credentials, {bool? isTestnet}) async {
checkIfExists(credentials.name);
await checkIfExists(credentials.name);
if (credentials.password == null) {
credentials.password = generateWalletPassword();
@@ -135,7 +135,7 @@ class WalletCreationService {
}
Future<WalletBase> restoreFromHardwareWallet(WalletCredentials credentials) async {
checkIfExists(credentials.name);
await checkIfExists(credentials.name);
final password = generateWalletPassword();
credentials.password = password;
await keyService.saveWalletPassword(password: password, walletName: credentials.name);