-formatting / don't use deprecated method
This commit is contained in:
parent
1ee601f70f
commit
2051aded50
@ -420,10 +420,10 @@ async function handlePeerPullCreditCreatePurse(
|
|||||||
pullIni.exchangeBaseUrl,
|
pullIni.exchangeBaseUrl,
|
||||||
);
|
);
|
||||||
|
|
||||||
const httpResp = await ws.http.postJson(
|
const httpResp = await ws.http.fetch(reservePurseMergeUrl.href, {
|
||||||
reservePurseMergeUrl.href,
|
method: "POST",
|
||||||
reservePurseReqBody,
|
body: reservePurseReqBody,
|
||||||
);
|
});
|
||||||
|
|
||||||
if (httpResp.status === HttpStatusCode.UnavailableForLegalReasons) {
|
if (httpResp.status === HttpStatusCode.UnavailableForLegalReasons) {
|
||||||
const respJson = await httpResp.json();
|
const respJson = await httpResp.json();
|
||||||
@ -775,7 +775,7 @@ export async function initiatePeerPullPayment(
|
|||||||
contractPub: contractKeyPair.pub,
|
contractPub: contractKeyPair.pub,
|
||||||
withdrawalGroupId,
|
withdrawalGroupId,
|
||||||
estimatedAmountEffective: wi.withdrawalAmountEffective,
|
estimatedAmountEffective: wi.withdrawalAmountEffective,
|
||||||
}
|
};
|
||||||
await tx.peerPullPaymentInitiations.put(ppi);
|
await tx.peerPullPaymentInitiations.put(ppi);
|
||||||
const oldTxState: TransactionState = {
|
const oldTxState: TransactionState = {
|
||||||
major: TransactionMajorState.None,
|
major: TransactionMajorState.None,
|
||||||
|
Loading…
Reference in New Issue
Block a user