Skip to content

Commit

Permalink
fix blockSequence assert error
Browse files Browse the repository at this point in the history
  • Loading branch information
zkcarter committed Dec 2, 2023
1 parent 2ad9fb4 commit a402d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/zklink.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ mod Zklink {
}
let _executedBlockIdx = _totalBlocksExecuted + i.into() + 1;
let _blockExecuteData: @ExecuteBlockInfo = _blocksData[i];
assert(*_blockExecuteData.storedBlock.blockSequence == _totalBlocksExecuted, 'd2');
assert(*_blockExecuteData.storedBlock.blockSequence == _executedBlockIdx, 'd2');
self.executeOneBlock(_blockExecuteData, _executedBlockIdx);
priorityRequestsExecuted += *_blockExecuteData.storedBlock.priorityOperations;
i += 1;
Expand Down

0 comments on commit a402d1c

Please sign in to comment.