Skip to content

Commit

Permalink
fix: sendSnapshot txn update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mani Brar authored and Mani Brar committed Jan 3, 2025
1 parent a38d3ea commit c4fa598
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions validator-cli/src/utils/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const getClaim = async (
claim.blocknumberVerification = verificationLogs[0].blockNumber;
}
if (challengeLogs.length > 0) {
console.log(challengeLogs);
claim.challenger = "0x" + challengeLogs[0].topics[2].substring(26);
}

Expand Down Expand Up @@ -91,7 +90,10 @@ const getClaimResolveState = async (
};

if (sentSnapshotLogs.length === 0) return claimResolveState;
else claimResolveState.sendSnapshot.status = true;
else {
claimResolveState.sendSnapshot.status = true;
claimResolveState.sendSnapshot.txHash = sentSnapshotLogs[0].transactionHash;
}

const status = await getMessageStatus(sentSnapshotLogs[0].transactionHash, veaInboxProvider, veaOutboxProvider);
claimResolveState.execution.status = status;
Expand Down

0 comments on commit c4fa598

Please sign in to comment.