Skip to content

Commit 8d2cab0

Browse files
Mani BrarMani Brar
authored andcommitted
fix: challenge check for startVerification
1 parent 88f2c8a commit 8d2cab0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contracts/src/arbitrumToEth/VeaOutboxArbToEth.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ contract VeaOutboxArbToEth is IVeaOutboxOnL1 {
278278
/// @param _claim The claim associated with the epoch.
279279
function startVerification(uint256 _epoch, Claim memory _claim) external virtual {
280280
require(claimHashes[_epoch] == hashClaim(_claim), "Invalid claim.");
281+
require(_claim.challenger == address(0), "Claim is challenged.");
281282

282283
// sequencerDelayLimit + epochPeriod is the worst case time to sync the L2 state compared to L1 clock.
283284
// using checked arithmetic incase arbitrum governance sets sequencerDelayLimit to a large value

contracts/src/arbitrumToGnosis/VeaOutboxArbToGnosis.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ contract VeaOutboxArbToGnosis is IVeaOutboxOnL1, ISequencerDelayUpdatable {
224224
/// @param _claim The claim associated with the epoch.
225225
function startVerification(uint256 _epoch, Claim memory _claim) external virtual {
226226
require(claimHashes[_epoch] == hashClaim(_claim), "Invalid claim.");
227+
require(_claim.challenger == address(0), "Claim is challenged.");
227228

228229
// sequencerDelayLimit + epochPeriod is the worst case time to sync the L2 state compared to L1 clock.
229230
// using checked arithmetic incase arbitrum governance sets sequencerDelayLimit to a large value

0 commit comments

Comments
 (0)