-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,
|
ageCommitmentProof: c.ageCommitmentProof,
|
||||||
spend_allocation: c.spendAllocation
|
spend_allocation: c.spendAllocation
|
||||||
? {
|
? {
|
||||||
amount: c.spendAllocation.amount,
|
amount: c.spendAllocation.amount,
|
||||||
id: c.spendAllocation.id,
|
id: c.spendAllocation.id,
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1261,7 +1261,10 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
|
|||||||
`templates/${url.templateId}`,
|
`templates/${url.templateId}`,
|
||||||
url.merchantBaseUrl,
|
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(
|
const resp = await readSuccessResponseJsonOrThrow(
|
||||||
httpReq,
|
httpReq,
|
||||||
codecForMerchantPostOrderResponse(),
|
codecForMerchantPostOrderResponse(),
|
||||||
|
Loading…
Reference in New Issue
Block a user