-formatting, don't use deprecated method

This commit is contained in:
Florian Dold 2023-09-14 20:58:40 +02:00
parent 93e0f26b43
commit c919c30ef3
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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(),