mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Update electrum_wallet.dart (#1411)
This commit is contained in:
parent
7fcf48f91d
commit
a6dc9bf9d6
1 changed files with 2 additions and 0 deletions
|
@ -1037,9 +1037,11 @@ abstract class ElectrumWalletBase
|
||||||
|
|
||||||
return Future.wait(addressesByType.map((addressRecord) async {
|
return Future.wait(addressesByType.map((addressRecord) async {
|
||||||
final history = await _fetchAddressHistory(addressRecord, addressesSet, currentHeight);
|
final history = await _fetchAddressHistory(addressRecord, addressesSet, currentHeight);
|
||||||
|
final balance = await electrumClient.getBalance(addressRecord.scriptHash!);
|
||||||
|
|
||||||
if (history.isNotEmpty) {
|
if (history.isNotEmpty) {
|
||||||
addressRecord.txCount = history.length;
|
addressRecord.txCount = history.length;
|
||||||
|
addressRecord.balance = balance['confirmed'] as int? ?? 0;
|
||||||
historiesWithDetails.addAll(history);
|
historiesWithDetails.addAll(history);
|
||||||
|
|
||||||
final matchedAddresses =
|
final matchedAddresses =
|
||||||
|
|
Loading…
Reference in a new issue