Skip to content

Commit

Permalink
fix: secure3-arbitrator-upgrade-issue-5
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbenny committed Apr 12, 2024
1 parent c77e28e commit 8badb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/ZkLink.sol
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ contract ZkLink is
require(_toBatchNumber >= _fromBatchNumber, "Invalid range");
bytes32 range = keccak256(abi.encodePacked(_fromBatchNumber, _toBatchNumber));
bytes32 rangeBatchRootHash = rangeBatchRootHashes[range];
require(rangeBatchRootHash != bytes32(0), "Rang batch root hash not exist");
require(rangeBatchRootHash != bytes32(0), "Range batch root hash not exist");
uint256 rootHashesLength = _l2LogsRootHashes.length;
require(rootHashesLength == _toBatchNumber - _fromBatchNumber + 1, "Invalid root hashes length");
bytes32 _rangeBatchRootHash = _l2LogsRootHashes[0];
Expand Down

0 comments on commit 8badb5e

Please sign in to comment.