make no sense to send the noncePriv if the proposal is already paid

This commit is contained in:
Sebastian 2021-09-20 00:17:45 -03:00
parent 315b167bee
commit 62b64cb453
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 0 additions and 5 deletions

View File

@ -356,7 +356,6 @@ export const codecForPreparePayResultAlreadyConfirmed = (): Codec<PreparePayResu
.property("contractTerms", codecForAny())
.property("contractTermsHash", codecForString())
.property("proposalId", codecForString())
.property("noncePriv", codecForString())
.build("PreparePayResultAlreadyConfirmed");
export const codecForPreparePayResult = (): Codec<PreparePayResult> =>
@ -407,7 +406,6 @@ export interface PreparePayResultAlreadyConfirmed {
amountEffective: string;
contractTermsHash: string;
proposalId: string;
noncePriv: string;
}
export interface BankWithdrawDetails {

View File

@ -1465,7 +1465,6 @@ export async function checkPaymentByProposalId(
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
amountEffective: Amounts.stringify(purchase.totalPayCost),
proposalId,
noncePriv: proposal.noncePriv,
};
} else if (!purchase.timestampFirstSuccessfulPay) {
return {
@ -1476,7 +1475,6 @@ export async function checkPaymentByProposalId(
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
amountEffective: Amounts.stringify(purchase.totalPayCost),
proposalId,
noncePriv: proposal.noncePriv,
};
} else {
const paid = !purchase.paymentSubmitPending;
@ -1489,7 +1487,6 @@ export async function checkPaymentByProposalId(
amountEffective: Amounts.stringify(purchase.totalPayCost),
...(paid ? { nextUrl: purchase.download.contractData.orderId } : {}),
proposalId,
noncePriv: proposal.noncePriv,
};
}
}