mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +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 {
|
} else {
|
||||||
for (int i = 0; i < allAddresses.length; i++) {
|
for (int i = 0; i < allAddresses.length; i++) {
|
||||||
|
final addressString = allAddresses.elementAt(i);
|
||||||
final scriptHash = cryptoCurrency.addressToScriptHash(
|
final scriptHash = cryptoCurrency.addressToScriptHash(
|
||||||
address: allAddresses.elementAt(1),
|
address: addressString,
|
||||||
);
|
);
|
||||||
|
|
||||||
final response = await electrumXClient.getHistory(
|
final response = await electrumXClient.getHistory(
|
||||||
|
@ -1089,7 +1090,7 @@ mixin ElectrumXInterface on Bip39HDWallet {
|
||||||
);
|
);
|
||||||
|
|
||||||
for (int j = 0; j < response.length; j++) {
|
for (int j = 0; j < response.length; j++) {
|
||||||
response[j]["address"] = allAddresses.elementAt(1);
|
response[j]["address"] = addressString;
|
||||||
if (!allTxHashes.contains(response[j])) {
|
if (!allTxHashes.contains(response[j])) {
|
||||||
allTxHashes.add(response[j]);
|
allTxHashes.add(response[j]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue