diff options
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-exchange-deposit.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-exchange-deposit.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts index 47a17a1f2..cc8772866 100644 --- a/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts +++ b/packages/taler-harness/src/integrationtests/test-exchange-deposit.ts @@ -37,8 +37,8 @@ import { topupReserveWithBank, withdrawCoin, } from "@gnu-taler/taler-wallet-core/dbless"; +import { createSimpleTestkudosEnvironmentV2 } from "../harness/environments.js"; import { GlobalTestState } from "../harness/harness.js"; -import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js"; /** * Run test for basic, bank-integrated withdrawal and payment. @@ -56,6 +56,10 @@ export async function runExchangeDepositTest(t: GlobalTestState) { ); const cryptoApi = cryptiDisp.cryptoApi; + const merchantPair = await cryptoApi.createEddsaKeypair({}); + const merchantPub = merchantPair.pub; + const merchantPriv = merchantPair.priv; + try { // Withdraw digital cash into the wallet. @@ -93,12 +97,12 @@ export async function runExchangeDepositTest(t: GlobalTestState) { }); const wireSalt = encodeCrock(getRandomBytes(16)); - const merchantPub = encodeCrock(getRandomBytes(32)); const contractTermsHash = encodeCrock(getRandomBytes(64)); await depositCoin({ contractTermsHash, merchantPub, + merchantPriv, wireSalt, amount: "TESTKUDOS:4" as AmountString, coin: coin, @@ -111,6 +115,7 @@ export async function runExchangeDepositTest(t: GlobalTestState) { await depositCoin({ contractTermsHash, merchantPub, + merchantPriv, wireSalt, amount: "TESTKUDOS:4" as AmountString, coin: coin, @@ -124,6 +129,7 @@ export async function runExchangeDepositTest(t: GlobalTestState) { await depositCoin({ contractTermsHash, merchantPub, + merchantPriv, wireSalt, amount: "TESTKUDOS:3.5" as AmountString, coin: coin, |