-formatting, don't use deprecated method
This commit is contained in:
parent
93e0f26b43
commit
c919c30ef3
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user