diff options
author | Florian Dold <florian@dold.me> | 2023-09-14 20:58:40 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-14 20:58:40 +0200 |
commit | c919c30ef3c5a2988823e4d76c8e22067db88804 (patch) | |
tree | 17422254d9a4142173cc2d8b48a6a6b8c4bb5a13 | |
parent | 93e0f26b432a0e96d9f50e58058bb69d7fbf74e8 (diff) |
-formatting, don't use deprecated method
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 2d0878afc..9091a92bf 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -923,9 +923,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> { ageCommitmentProof: c.ageCommitmentProof, spend_allocation: c.spendAllocation ? { - amount: c.spendAllocation.amount, - id: c.spendAllocation.id, - } + amount: c.spendAllocation.amount, + id: c.spendAllocation.id, + } : undefined, }); } @@ -1261,7 +1261,10 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( `templates/${url.templateId}`, url.merchantBaseUrl, ); - const httpReq = await ws.http.postJson(reqUrl.href, templateDetails); + const httpReq = await ws.http.fetch(reqUrl.href, { + method: "POST", + body: templateDetails, + }); const resp = await readSuccessResponseJsonOrThrow( httpReq, codecForMerchantPostOrderResponse(), |