mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-09-29 18:01:06 +00:00
no need to fetch address if it already exists
This commit is contained in:
parent
c0389d2da7
commit
86c33d4cb5
1 changed files with 21 additions and 19 deletions
|
@ -2668,6 +2668,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
try {
|
||||
// Populating the addresses to check
|
||||
for (var i = 0; i < utxosToUse.length; i++) {
|
||||
if (utxosToUse[i].address == null) {
|
||||
final txid = utxosToUse[i].txid;
|
||||
final tx = await _cachedElectrumXClient.getTransaction(
|
||||
txHash: txid,
|
||||
|
@ -2692,6 +2693,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
utxosToUse[i] = utxosToUse[i].copyWith(address: address);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
final derivePathType = addressType(address: utxosToUse[i].address!);
|
||||
|
||||
|
|
Loading…
Reference in a new issue