mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
await wallet name check [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -95,7 +95,7 @@ abstract class WalletCreationVMBase with Store {
|
||||
throw Exception(S.current.repeated_password_is_incorrect);
|
||||
}
|
||||
|
||||
walletCreationService.checkIfExists(name);
|
||||
await walletCreationService.checkIfExists(name);
|
||||
final dirPath = await pathForWalletDir(name: name, type: type);
|
||||
final path = await pathForWallet(name: name, type: type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user