mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
fix linear electrumx address history fetch
This commit is contained in:
parent
f7d162e67a
commit
3f282edd33
1 changed files with 3 additions and 2 deletions
|
@ -1080,8 +1080,9 @@ mixin ElectrumXInterface on Bip39HDWallet {
|
|||
}
|
||||
} else {
|
||||
for (int i = 0; i < allAddresses.length; i++) {
|
||||
final addressString = allAddresses.elementAt(i);
|
||||
final scriptHash = cryptoCurrency.addressToScriptHash(
|
||||
address: allAddresses.elementAt(1),
|
||||
address: addressString,
|
||||
);
|
||||
|
||||
final response = await electrumXClient.getHistory(
|
||||
|
@ -1089,7 +1090,7 @@ mixin ElectrumXInterface on Bip39HDWallet {
|
|||
);
|
||||
|
||||
for (int j = 0; j < response.length; j++) {
|
||||
response[j]["address"] = allAddresses.elementAt(1);
|
||||
response[j]["address"] = addressString;
|
||||
if (!allTxHashes.contains(response[j])) {
|
||||
allTxHashes.add(response[j]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue