taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit c919c30ef3c5a2988823e4d76c8e22067db88804
parent 93e0f26b432a0e96d9f50e58058bb69d7fbf74e8
Author: Florian Dold <florian@dold.me>
Date:   Thu, 14 Sep 2023 20:58:40 +0200

-formatting, don't use deprecated method

Diffstat:
Mpackages/taler-wallet-core/src/wallet.ts | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git 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(),