CAKE-305 | saved btc wallet in the nextAddress() method
OleksandrSobol committed
Apr 1, 2021 at 19:14 UTC
13923d778153cf1257c106ec0535c244cb07a4f4
1 file changed
+3
-1
lib/bitcoin/bitcoin_wallet.dart
+3
-1
@@ -174,7 +174,7 @@ abstract class BitcoinWalletBase extends WalletBase<BitcoinBalance> with Store {
174
}
175
176
@action
177
- void nextAddress() {
177
+ void nextAddress() async {
178
_accountIndex += 1;
179
180
if (_accountIndex >= addresses.length) {
@@ -182,6 +182,8 @@ abstract class BitcoinWalletBase extends WalletBase<BitcoinBalance> with Store {
182
}
183
184
address = addresses[_accountIndex].address;
185
+
186
+ await save();
187
}
188
189
Future<BitcoinAddressRecord> generateNewAddress() async {