Skip to content

Commit

Permalink
fix: tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Picodes committed Nov 27, 2023
1 parent 5aa54fe commit ec0e41b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bot/dispute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const approveDisputeStake: Step = async ({ onChainProvider, chainId }, re

export const disputeTree: Step = async ({ onChainProvider, chainId }, report) => {
try {
const { disputeToken, disputeAmount } = report?.params;
const { signer } = report?.disputeReport;

const txnOverrides =
Expand All @@ -59,7 +58,7 @@ export const disputeTree: Step = async ({ onChainProvider, chainId }, report) =>
}
: {};

const disputeReceipt = await onChainProvider.sendApproveTxn(signer, disputeToken, disputeAmount, txnOverrides);
const disputeReceipt = await onChainProvider.sendDisputeTxn(signer, 'Dispute detected', txnOverrides);

return Result.Success({ ...report, disputeReport: { ...report.disputeReport, disputeReceipt } });
} catch (err) {
Expand Down

0 comments on commit ec0e41b

Please sign in to comment.