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("contractTerms", codecForAny())
|
||||||
.property("contractTermsHash", codecForString())
|
.property("contractTermsHash", codecForString())
|
||||||
.property("proposalId", codecForString())
|
.property("proposalId", codecForString())
|
||||||
.property("noncePriv", codecForString())
|
|
||||||
.build("PreparePayResultAlreadyConfirmed");
|
.build("PreparePayResultAlreadyConfirmed");
|
||||||
|
|
||||||
export const codecForPreparePayResult = (): Codec<PreparePayResult> =>
|
export const codecForPreparePayResult = (): Codec<PreparePayResult> =>
|
||||||
@ -407,7 +406,6 @@ export interface PreparePayResultAlreadyConfirmed {
|
|||||||
amountEffective: string;
|
amountEffective: string;
|
||||||
contractTermsHash: string;
|
contractTermsHash: string;
|
||||||
proposalId: string;
|
proposalId: string;
|
||||||
noncePriv: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BankWithdrawDetails {
|
export interface BankWithdrawDetails {
|
||||||
|
@ -1465,7 +1465,6 @@ export async function checkPaymentByProposalId(
|
|||||||
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
|
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
|
||||||
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
||||||
proposalId,
|
proposalId,
|
||||||
noncePriv: proposal.noncePriv,
|
|
||||||
};
|
};
|
||||||
} else if (!purchase.timestampFirstSuccessfulPay) {
|
} else if (!purchase.timestampFirstSuccessfulPay) {
|
||||||
return {
|
return {
|
||||||
@ -1476,7 +1475,6 @@ export async function checkPaymentByProposalId(
|
|||||||
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
|
amountRaw: Amounts.stringify(purchase.download.contractData.amount),
|
||||||
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
||||||
proposalId,
|
proposalId,
|
||||||
noncePriv: proposal.noncePriv,
|
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
const paid = !purchase.paymentSubmitPending;
|
const paid = !purchase.paymentSubmitPending;
|
||||||
@ -1489,7 +1487,6 @@ export async function checkPaymentByProposalId(
|
|||||||
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
amountEffective: Amounts.stringify(purchase.totalPayCost),
|
||||||
...(paid ? { nextUrl: purchase.download.contractData.orderId } : {}),
|
...(paid ? { nextUrl: purchase.download.contractData.orderId } : {}),
|
||||||
proposalId,
|
proposalId,
|
||||||
noncePriv: proposal.noncePriv,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user