summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-09-21 17:56:29 +0200
committerFlorian Dold <florian@dold.me>2023-09-21 17:56:29 +0200
commit58debefbe0456ce203877f1cc417c42f4abb0685 (patch)
treeda8e0ffdca8825eb2a59c81b699fd3e6b2913037 /packages/taler-wallet-core/src/wallet.ts
parent0388d31d364139d0a3999126b06d8ac850117ab9 (diff)
downloadwallet-core-58debefbe0456ce203877f1cc417c42f4abb0685.tar.gz
wallet-core-58debefbe0456ce203877f1cc417c42f4abb0685.tar.bz2
wallet-core-58debefbe0456ce203877f1cc417c42f4abb0685.zip
wallet-core,harness: towards corebank API instead of fakebank/nexus API
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts18
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 9091a92bf..2c4f1ba6f 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1513,13 +1513,19 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
const components = pt.targetPath.split("/");
const creditorAcct = components[components.length - 1];
logger.info(`making testbank transfer to '${creditorAcct}'`);
- const fbReq = await ws.http.postJson(
- new URL(`${creditorAcct}/admin/add-incoming`, req.bank).href,
+ const fbReq = await ws.http.fetch(
+ new URL(
+ `accounts/${creditorAcct}/taler-wire-gateway/admin/add-incoming`,
+ req.bank,
+ ).href,
{
- amount: Amounts.stringify(amount),
- reserve_pub: wres.reservePub,
- debit_account:
- "payto://x-taler-bank/localhost/testdebtor?receiver-name=Foo",
+ method: "POST",
+ body: {
+ amount: Amounts.stringify(amount),
+ reserve_pub: wres.reservePub,
+ debit_account:
+ "payto://x-taler-bank/localhost/testdebtor?receiver-name=Foo",
+ },
},
);
const fbResp = await readSuccessResponseJsonOrThrow(fbReq, codecForAny());