@@ -86,7 +86,7 @@ contract ZkLink is
86
86
address public forwardFeeAllocator;
87
87
/// @dev The range batch root hash of [fromBatchNumber, toBatchNumber]
88
88
/// The key is keccak256(abi.encodePacked(fromBatchNumber, toBatchNumber))
89
- mapping (bytes32 range = > bytes32 rangeBatchRootHash ) public rangBatchRootHashes ;
89
+ mapping (bytes32 range = > bytes32 rangeBatchRootHash ) public rangeBatchRootHashes ;
90
90
/**
91
91
* @dev This empty reserved space is put in place to allow future versions to add new
92
92
* variables without shifting down storage in the inheritance chain.
@@ -479,7 +479,7 @@ contract ZkLink is
479
479
require (_toBatchNumber >= _fromBatchNumber, "Invalid range " );
480
480
require (msg .value == _forwardEthAmount, "Invalid forward amount " );
481
481
bytes32 range = keccak256 (abi.encodePacked (_fromBatchNumber, _toBatchNumber));
482
- rangBatchRootHashes [range] = _rangeBatchRootHash;
482
+ rangeBatchRootHashes [range] = _rangeBatchRootHash;
483
483
emit SyncRangeBatchRoot (_fromBatchNumber, _toBatchNumber, _rangeBatchRootHash, _forwardEthAmount);
484
484
}
485
485
@@ -494,7 +494,7 @@ contract ZkLink is
494
494
) external onlyValidator {
495
495
require (_toBatchNumber >= _fromBatchNumber, "Invalid range " );
496
496
bytes32 range = keccak256 (abi.encodePacked (_fromBatchNumber, _toBatchNumber));
497
- bytes32 rangeBatchRootHash = rangBatchRootHashes [range];
497
+ bytes32 rangeBatchRootHash = rangeBatchRootHashes [range];
498
498
require (rangeBatchRootHash != bytes32 (0 ), "Rang batch root hash not exist " );
499
499
uint256 rootHashesLength = _l2LogsRootHashes.length ;
500
500
require (rootHashesLength == _toBatchNumber - _fromBatchNumber + 1 , "Invalid root hashes length " );
@@ -508,7 +508,7 @@ contract ZkLink is
508
508
}
509
509
}
510
510
require (_rangeBatchRootHash == rangeBatchRootHash, "Incorrect root hash " );
511
- delete rangBatchRootHashes [range];
511
+ delete rangeBatchRootHashes [range];
512
512
if (_toBatchNumber > totalBatchesExecuted) {
513
513
totalBatchesExecuted = _toBatchNumber;
514
514
}
0 commit comments