mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 07:09:10 +00:00
disable syncing of newly created view only wallet without entering the wallet first
This commit is contained in:
parent
1d22eed7c4
commit
f2a654e1e5
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,8 @@ class _VerifyRecoveryPhraseViewState
|
||||||
final address = info.$1;
|
final address = info.$1;
|
||||||
final privateViewKey = info.$2;
|
final privateViewKey = info.$2;
|
||||||
|
|
||||||
|
await w.exit();
|
||||||
|
|
||||||
viewOnlyData = CryptonoteViewOnlyWalletData(
|
viewOnlyData = CryptonoteViewOnlyWalletData(
|
||||||
walletId: voInfo.walletId,
|
walletId: voInfo.walletId,
|
||||||
address: address,
|
address: address,
|
||||||
|
@ -236,6 +238,8 @@ class _VerifyRecoveryPhraseViewState
|
||||||
|
|
||||||
ref.read(pWallets).addWallet(voWallet);
|
ref.read(pWallets).addWallet(voWallet);
|
||||||
|
|
||||||
|
await voWallet.exit();
|
||||||
|
|
||||||
await ref.read(pWallets).deleteWallet(
|
await ref.read(pWallets).deleteWallet(
|
||||||
widget.wallet.info,
|
widget.wallet.info,
|
||||||
ref.read(secureStoreProvider),
|
ref.read(secureStoreProvider),
|
||||||
|
|
Loading…
Reference in a new issue