aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-tipping.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-22 22:17:08 +0200
committerFlorian Dold <florian@dold.me>2023-04-22 22:17:08 +0200
commit321252040efdb0712a38b3488297a7a802c5cb59 (patch)
tree0ef4933afe3e8502246183a2e5bcf8c9a1e7c909 /packages/taler-harness/src/integrationtests/test-tipping.ts
parent15a1b8d0966783033947588cdb27850fe6811405 (diff)
downloadwallet-core-321252040efdb0712a38b3488297a7a802c5cb59.tar.xz
-fix test-exchange-deposit
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-tipping.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-tipping.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-tipping.ts b/packages/taler-harness/src/integrationtests/test-tipping.ts
index d31e0c06b..69afad6fd 100644
--- a/packages/taler-harness/src/integrationtests/test-tipping.ts
+++ b/packages/taler-harness/src/integrationtests/test-tipping.ts
@@ -17,7 +17,11 @@
/**
* Imports.
*/
-import { WalletApiOperation, BankApi } from "@gnu-taler/taler-wallet-core";
+import {
+ WalletApiOperation,
+ BankApi,
+ WireGatewayApiClient,
+} from "@gnu-taler/taler-wallet-core";
import {
GlobalTestState,
MerchantPrivateApi,
@@ -53,10 +57,15 @@ export async function runTippingTest(t: GlobalTestState) {
exchangeBankAccount.accountPaytoUri,
);
- await BankApi.adminAddIncoming(bank, {
+ const wireGatewayApiClient = new WireGatewayApiClient({
+ wireGatewayApiBaseUrl: exchangeBankAccount.wireGatewayApiBaseUrl,
+ accountName: exchangeBankAccount.accountName,
+ accountPassword: exchangeBankAccount.accountPassword,
+ });
+
+ await wireGatewayApiClient.adminAddIncoming({
amount: "TESTKUDOS:10",
debitAccountPayto: mbu.accountPaytoUri,
- exchangeBankAccount,
reservePub: tipReserveResp.reserve_pub,
});