mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 03:06:29 +00:00
Attemp to update cached receiving address
This commit is contained in:
parent
ab3df052d4
commit
891f2d8702
1 changed files with 8 additions and 1 deletions
|
@ -332,7 +332,7 @@ class EpiccashWallet extends Bip39Wallet {
|
|||
}
|
||||
|
||||
|
||||
// print("NOW THIS ADDRESS IS $address");
|
||||
print("NOW THIS ADDRESS IS $address");
|
||||
return address;
|
||||
}
|
||||
|
||||
|
@ -363,6 +363,12 @@ class EpiccashWallet extends Bip39Wallet {
|
|||
);
|
||||
|
||||
await mainDB.updateOrPutAddresses([address]);
|
||||
if (info.cachedReceivingAddress != address.value) {
|
||||
await info.updateReceivingAddress(
|
||||
newAddress: address.value,
|
||||
isar: mainDB.isar,
|
||||
);
|
||||
}
|
||||
return address;
|
||||
}
|
||||
|
||||
|
@ -935,6 +941,7 @@ class EpiccashWallet extends Bip39Wallet {
|
|||
.findAll();
|
||||
final myAddressesSet = myAddresses.toSet();
|
||||
|
||||
|
||||
final transactions = await epiccash.LibEpiccash.getTransactions(
|
||||
wallet: wallet!,
|
||||
refreshFromNode: refreshFromNode,
|
||||
|
|
Loading…
Reference in a new issue