commit 02b783f0b0e324deda8865b9e161a37dd7f153a8
parent c89c2ba5f907291a326fa597d06f3965e60caa0e
Author: Sebastian <sebasjm@gmail.com>
Date: Thu, 16 Nov 2023 09:24:18 -0300
fix not compiling
Diffstat:
3 files changed, 28 insertions(+), 4 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
@@ -22,8 +22,10 @@ import {
AmountString,
Duration,
NotificationType,
+ TalerUriAction,
TransactionMajorState,
TransactionMinorState,
+ stringifyTalerUri,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { defaultCoinConfig } from "../harness/denomStructures.js";
@@ -99,10 +101,16 @@ export async function runAgeRestrictionsPeerTest(t: GlobalTestState) {
await peerPushReadyCond;
+ const talerUri = stringifyTalerUri({
+ type: TalerUriAction.PayPush,
+ exchangeBaseUrl: initResp.exchangeBaseUrl,
+ contractPriv: initResp.contractPriv,
+ })
+
const checkResp = await wallet2.call(
WalletApiOperation.PreparePeerPushCredit,
{
- talerUri: initResp.talerUri,
+ talerUri,
},
);
diff --git a/packages/taler-harness/src/integrationtests/test-peer-repair.ts b/packages/taler-harness/src/integrationtests/test-peer-repair.ts
@@ -22,9 +22,11 @@ import {
AmountString,
Duration,
NotificationType,
+ TalerUriAction,
TransactionMajorState,
TransactionMinorState,
WalletNotification,
+ stringifyTalerUri,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
@@ -109,10 +111,16 @@ export async function runPeerRepairTest(t: GlobalTestState) {
await peerPushDebitReady1Cond;
+ const talerUri = stringifyTalerUri({
+ type: TalerUriAction.PayPush,
+ exchangeBaseUrl: resp1.exchangeBaseUrl,
+ contractPriv: resp1.contractPriv,
+ })
+
const resp2 = await wallet2.client.call(
WalletApiOperation.PreparePeerPushCredit,
{
- talerUri: resp1.talerUri,
+ talerUri,
},
);
diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts
@@ -22,10 +22,12 @@ import {
AmountString,
Duration,
NotificationType,
+ TalerUriAction,
TransactionMajorState,
TransactionMinorState,
WalletNotification,
j2s,
+ stringifyTalerUri,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
@@ -115,10 +117,16 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) {
await peerPushReadyCond;
- const checkResp = await w2.walletClient.call(
+ const talerUri = stringifyTalerUri({
+ type: TalerUriAction.PayPush,
+ exchangeBaseUrl: resp.exchangeBaseUrl,
+ contractPriv: resp.contractPriv,
+ })
+
+const checkResp = await w2.walletClient.call(
WalletApiOperation.PreparePeerPushCredit,
{
- talerUri: resp.talerUri,
+ talerUri,
},
);