aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-withdrawal-manual.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-withdrawal-manual.ts
parent15a1b8d0966783033947588cdb27850fe6811405 (diff)
downloadwallet-core-321252040efdb0712a38b3488297a7a802c5cb59.tar.xz
-fix test-exchange-deposit
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts
index 260972498..4a79d2c21 100644
--- a/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts
+++ b/packages/taler-harness/src/integrationtests/test-withdrawal-manual.ts
@@ -19,7 +19,11 @@
*/
import { GlobalTestState } from "../harness/harness.js";
import { createSimpleTestkudosEnvironment } from "../harness/helpers.js";
-import { WalletApiOperation, BankApi } from "@gnu-taler/taler-wallet-core";
+import {
+ WalletApiOperation,
+ BankApi,
+ WireGatewayApiClient,
+} from "@gnu-taler/taler-wallet-core";
import { AbsoluteTime, j2s, Logger } from "@gnu-taler/taler-util";
const logger = new Logger("test-withdrawal-manual.ts");
@@ -65,8 +69,13 @@ export async function runWithdrawalManualTest(t: GlobalTestState) {
const reservePub: string = wres.reservePub;
- await BankApi.adminAddIncoming(bank, {
- exchangeBankAccount,
+ const wireGatewayApiClient = new WireGatewayApiClient({
+ wireGatewayApiBaseUrl: exchangeBankAccount.wireGatewayApiBaseUrl,
+ accountName: exchangeBankAccount.accountName,
+ accountPassword: exchangeBankAccount.accountPassword,
+ });
+
+ await wireGatewayApiClient.adminAddIncoming({
amount: "TESTKUDOS:10",
debitAccountPayto: user.accountPaytoUri,
reservePub: reservePub,