From b3194005f98f16f7c22b1f013b61daffd78c6b39 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 16 Nov 2023 13:47:21 +0100 Subject: -remove remaining usage of deprecated field --- packages/taler-wallet-core/src/operations/testing.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src') 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, { -- cgit v1.2.3