mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Added selection of new wallet type. Returned support of bitcoin wallet.
This commit is contained in:
@@ -27,7 +27,7 @@ abstract class WalletCreationVMBase with Store {
|
||||
@observable
|
||||
ExecutionState state;
|
||||
|
||||
final WalletType type;
|
||||
WalletType type;
|
||||
final bool isRecovery;
|
||||
final Box<WalletInfo> _walletInfoSource;
|
||||
final AppStore _appStore;
|
||||
|
||||
@@ -43,6 +43,8 @@ abstract class WalletNewVMBase extends WalletCreationVM with Store {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<WalletBase> process(WalletCredentials credentials) async =>
|
||||
_walletCreationService.create(credentials);
|
||||
Future<WalletBase> process(WalletCredentials credentials) async {
|
||||
_walletCreationService.changeWalletType(type: type);
|
||||
return _walletCreationService.create(credentials);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user