aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-16 13:47:21 +0100
committerFlorian Dold <florian@dold.me>2023-11-16 13:57:07 +0100
commitb3194005f98f16f7c22b1f013b61daffd78c6b39 (patch)
treea31266c27b4150865a83e9ad4b9b0598bb4b78c9 /packages/taler-wallet-core/src
parenta67c46f36cb60fcd175273db39a38cd93cfa89e2 (diff)
downloadwallet-core-b3194005f98f16f7c22b1f013b61daffd78c6b39.tar.xz
-remove remaining usage of deprecated field
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r--packages/taler-wallet-core/src/operations/testing.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts
index 904403dd5..1981519f1 100644
--- a/packages/taler-wallet-core/src/operations/testing.ts
+++ b/packages/taler-wallet-core/src/operations/testing.ts
@@ -686,8 +686,20 @@ export async function runIntegrationTest2(
contractPriv: peerPushInit.contractPriv,
})
+ const txDetails = await getTransactionById(ws, {
+ transactionId: peerPushInit.transactionId,
+ });
+
+ if (txDetails.type !== TransactionType.PeerPushDebit) {
+ throw Error("internal invariant failed");
+ }
+
+ if (!txDetails.talerUri) {
+ throw Error("internal invariant failed");
+ }
+
const peerPushCredit = await preparePeerPushCredit(ws, {
- talerUri,
+ talerUri: txDetails.talerUri,
});
await confirmPeerPushCredit(ws, {