make no sense to send the noncePriv if the proposal is already paid
This commit is contained in:
parent
315b167bee
commit
62b64cb453
@ -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 {
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user