diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-16 09:24:18 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-16 09:24:18 -0300 |
commit | 02b783f0b0e324deda8865b9e161a37dd7f153a8 (patch) | |
tree | 41c5b6d2e003139c373ad1ff53cae526c94530e6 /packages/taler-harness | |
parent | c89c2ba5f907291a326fa597d06f3965e60caa0e (diff) | |
download | wallet-core-02b783f0b0e324deda8865b9e161a37dd7f153a8.tar.xz |
fix not compiling
Diffstat (limited to 'packages/taler-harness')
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 index 7506d48b3..a58622f74 100644 --- 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 index 977316174..b3adf959b 100644 --- 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 index 44c7bf399..514b67e7d 100644 --- 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, }, ); |