aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts17
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts
index a58622f74..aea59b706 100644
--- a/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts
+++ b/packages/taler-harness/src/integrationtests/test-age-restrictions-peer.ts
@@ -25,7 +25,7 @@ import {
TalerUriAction,
TransactionMajorState,
TransactionMinorState,
- stringifyTalerUri,
+ TransactionType,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { defaultCoinConfig } from "../harness/denomStructures.js";
@@ -101,16 +101,19 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) {
await peerPushReadyCond;
- const talerUri = stringifyTalerUri({
- type: TalerUriAction.PayPush,
- exchangeBaseUrl: initResp.exchangeBaseUrl,
- contractPriv: initResp.contractPriv,
- })
+ const txDetails = await wallet1.call(
+ WalletApiOperation.GetTransactionById,
+ {
+ transactionId: initResp.transactionId,
+ },
+ );
+ t.assertDeepEqual(txDetails.type, TransactionType.PeerPushDebit);
+ t.assertTrue(!!txDetails.talerUri);
const checkResp = await wallet2.call(
WalletApiOperation.PreparePeerPushCredit,
{
- talerUri,
+ talerUri: txDetails.talerUri,
},
);