mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
dynamic map value fix
This commit is contained in:
parent
3414c71741
commit
061658f2e9
3 changed files with 12 additions and 3 deletions
|
@ -1863,7 +1863,10 @@ class DogecoinWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
||||||
tx["address"] = txHash["address"];
|
tx["address"] = await isar.addresses
|
||||||
|
.filter()
|
||||||
|
.valueEqualTo(txHash["address"] as String)
|
||||||
|
.findFirst();
|
||||||
tx["height"] = txHash["height"];
|
tx["height"] = txHash["height"];
|
||||||
allTransactions.add(tx);
|
allTransactions.add(tx);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2122,7 +2122,10 @@ class LitecoinWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
|
|
||||||
// Logging.instance.log("TRANSACTION: ${jsonEncode(tx)}");
|
// Logging.instance.log("TRANSACTION: ${jsonEncode(tx)}");
|
||||||
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
||||||
tx["address"] = txHash["address"];
|
tx["address"] = await isar.addresses
|
||||||
|
.filter()
|
||||||
|
.valueEqualTo(txHash["address"] as String)
|
||||||
|
.findFirst();
|
||||||
tx["height"] = txHash["height"];
|
tx["height"] = txHash["height"];
|
||||||
allTransactions.add(tx);
|
allTransactions.add(tx);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2103,7 +2103,10 @@ class NamecoinWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
|
|
||||||
// Logging.instance.log("TRANSACTION: ${jsonEncode(tx)}");
|
// Logging.instance.log("TRANSACTION: ${jsonEncode(tx)}");
|
||||||
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
if (!_duplicateTxCheck(allTransactions, tx["txid"] as String)) {
|
||||||
tx["address"] = txHash["address"];
|
tx["address"] = await isar.addresses
|
||||||
|
.filter()
|
||||||
|
.valueEqualTo(txHash["address"] as String)
|
||||||
|
.findFirst();
|
||||||
tx["height"] = txHash["height"];
|
tx["height"] = txHash["height"];
|
||||||
allTransactions.add(tx);
|
allTransactions.add(tx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue