mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
Couple of fixes
This commit is contained in:
parent
b1f0334550
commit
2c941efcc3
1 changed files with 2 additions and 1 deletions
|
@ -188,6 +188,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
date: date, confirmations: confirmations,
|
||||
inputAddresses: [],
|
||||
outputAddresses: [utxo.address]);
|
||||
tx.height = utxo.height;
|
||||
tx.isPending = utxo.height == 0;
|
||||
tx.confirmations = confirmations;
|
||||
if (transactionHistory.transactions[utxo.outputId] == null) {
|
||||
|
@ -271,7 +272,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
if (outputId.isEmpty) return false;
|
||||
final stub = await CwMweb.stub();
|
||||
final resp = await stub.spent(SpentRequest(outputId: outputId));
|
||||
if (resp.outputId.toSet() != target) return false;
|
||||
if (!setEquals(resp.outputId.toSet(), target)) return false;
|
||||
final status = await stub.status(StatusRequest());
|
||||
if (!tx.isPending) return false;
|
||||
tx.height = status.mwebUtxosHeight;
|
||||
|
|
Loading…
Reference in a new issue