CAKE-305 | saved btc wallet in the nextAddress() method

This commit is contained in:
OleksandrSobol 2021-04-01 19:14:43 +03:00
parent 0848ede37f
commit 13923d7781

View file

@ -174,7 +174,7 @@ abstract class BitcoinWalletBase extends WalletBase<BitcoinBalance> with Store {
}
@action
void nextAddress() {
void nextAddress() async {
_accountIndex += 1;
if (_accountIndex >= addresses.length) {
@ -182,6 +182,8 @@ abstract class BitcoinWalletBase extends WalletBase<BitcoinBalance> with Store {
}
address = addresses[_accountIndex].address;
await save();
}
Future<BitcoinAddressRecord> generateNewAddress() async {