From 13923d778153cf1257c106ec0535c244cb07a4f4 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Thu, 1 Apr 2021 19:14:43 +0300 Subject: [PATCH] CAKE-305 | saved btc wallet in the nextAddress() method --- lib/bitcoin/bitcoin_wallet.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bitcoin/bitcoin_wallet.dart b/lib/bitcoin/bitcoin_wallet.dart index 97ad2ac1f..11efdf01b 100644 --- a/lib/bitcoin/bitcoin_wallet.dart +++ b/lib/bitcoin/bitcoin_wallet.dart @@ -174,7 +174,7 @@ abstract class BitcoinWalletBase extends WalletBase with Store { } @action - void nextAddress() { + void nextAddress() async { _accountIndex += 1; if (_accountIndex >= addresses.length) { @@ -182,6 +182,8 @@ abstract class BitcoinWalletBase extends WalletBase with Store { } address = addresses[_accountIndex].address; + + await save(); } Future generateNewAddress() async {