[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: fix buggy creati
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: fix buggy creation of denom-loss transactions |
Date: |
Tue, 02 Apr 2024 19:08:46 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 8fce8dd56 wallet-core: fix buggy creation of denom-loss transactions
8fce8dd56 is described below
commit 8fce8dd5601bb88608884d2ce1e14f422e810ef1
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Apr 2 19:08:42 2024 +0200
wallet-core: fix buggy creation of denom-loss transactions
---
.../src/integrationtests/test-payment-expired.ts | 11 ++++++-----
packages/taler-wallet-core/src/exchanges.ts | 5 ++++-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git
a/packages/taler-harness/src/integrationtests/test-payment-expired.ts
b/packages/taler-harness/src/integrationtests/test-payment-expired.ts
index 176fc74f7..a837b18fa 100644
--- a/packages/taler-harness/src/integrationtests/test-payment-expired.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment-expired.ts
@@ -117,15 +117,16 @@ export async function runPaymentExpiredTest(t:
GlobalTestState) {
});
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
- const bal = await walletClient.call(WalletApiOperation.GetBalances, {});
- console.log(bal);
-
- t.assertAmountEquals(bal.balances[0].available, "TESTKUDOS:18.93");
-
const txns = await walletClient.call(WalletApiOperation.GetTransactions, {
+ sort: "stable-ascending",
includeRefreshes: true,
});
console.log(j2s(txns));
+
+ const bal = await walletClient.call(WalletApiOperation.GetBalances, {});
+ console.log(j2s(bal));
+
+ t.assertAmountEquals(bal.balances[0].available, "TESTKUDOS:18.93");
}
runPaymentExpiredTest.suites = ["wallet"];
diff --git a/packages/taler-wallet-core/src/exchanges.ts
b/packages/taler-wallet-core/src/exchanges.ts
index 0fbe7297c..fa2876e30 100644
--- a/packages/taler-wallet-core/src/exchanges.ts
+++ b/packages/taler-wallet-core/src/exchanges.ts
@@ -1721,7 +1721,10 @@ async function handleDenomLoss(
continue;
}
const n = coinAv.freshCoinCount;
- const denom = await tx.denominations.get(coinAv.denomPubHash);
+ const denom = await tx.denominations.get([
+ coinAv.exchangeBaseUrl,
+ coinAv.denomPubHash,
+ ]);
const timestampExpireDeposit = !denom
? undefined
: timestampAbsoluteFromDb(denom.stampExpireDeposit);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: fix buggy creation of denom-loss transactions,
gnunet <=