-formatting / don't use deprecated method
This commit is contained in:
parent
1ee601f70f
commit
2051aded50
@ -420,10 +420,10 @@ async function handlePeerPullCreditCreatePurse(
|
||||
pullIni.exchangeBaseUrl,
|
||||
);
|
||||
|
||||
const httpResp = await ws.http.postJson(
|
||||
reservePurseMergeUrl.href,
|
||||
reservePurseReqBody,
|
||||
);
|
||||
const httpResp = await ws.http.fetch(reservePurseMergeUrl.href, {
|
||||
method: "POST",
|
||||
body: reservePurseReqBody,
|
||||
});
|
||||
|
||||
if (httpResp.status === HttpStatusCode.UnavailableForLegalReasons) {
|
||||
const respJson = await httpResp.json();
|
||||
@ -759,23 +759,23 @@ export async function initiatePeerPullPayment(
|
||||
.mktx((x) => [x.peerPullPaymentInitiations, x.contractTerms])
|
||||
.runReadWrite(async (tx) => {
|
||||
const ppi: PeerPullPaymentInitiationRecord = {
|
||||
amount: req.partialContractTerms.amount,
|
||||
contractTermsHash: hContractTerms,
|
||||
exchangeBaseUrl: exchangeBaseUrl,
|
||||
pursePriv: pursePair.priv,
|
||||
pursePub: pursePair.pub,
|
||||
mergePriv: mergePair.priv,
|
||||
mergePub: mergePair.pub,
|
||||
status: PeerPullPaymentInitiationStatus.PendingCreatePurse,
|
||||
contractTerms: contractTerms,
|
||||
mergeTimestamp,
|
||||
contractEncNonce,
|
||||
mergeReserveRowId: mergeReserveRowId,
|
||||
contractPriv: contractKeyPair.priv,
|
||||
contractPub: contractKeyPair.pub,
|
||||
withdrawalGroupId,
|
||||
estimatedAmountEffective: wi.withdrawalAmountEffective,
|
||||
}
|
||||
amount: req.partialContractTerms.amount,
|
||||
contractTermsHash: hContractTerms,
|
||||
exchangeBaseUrl: exchangeBaseUrl,
|
||||
pursePriv: pursePair.priv,
|
||||
pursePub: pursePair.pub,
|
||||
mergePriv: mergePair.priv,
|
||||
mergePub: mergePair.pub,
|
||||
status: PeerPullPaymentInitiationStatus.PendingCreatePurse,
|
||||
contractTerms: contractTerms,
|
||||
mergeTimestamp,
|
||||
contractEncNonce,
|
||||
mergeReserveRowId: mergeReserveRowId,
|
||||
contractPriv: contractKeyPair.priv,
|
||||
contractPub: contractKeyPair.pub,
|
||||
withdrawalGroupId,
|
||||
estimatedAmountEffective: wi.withdrawalAmountEffective,
|
||||
};
|
||||
await tx.peerPullPaymentInitiations.put(ppi);
|
||||
const oldTxState: TransactionState = {
|
||||
major: TransactionMajorState.None,
|
||||
|
Loading…
Reference in New Issue
Block a user