Skip to content

Commit

Permalink
chore: better name for l2 block range length to check
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Jul 18, 2024
1 parent c0beb96 commit 61c9aca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/linea-ens-resolver/contracts/L1Resolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ contract L1Resolver is
* since the callbackData is not used.
*/
modifier callbackDataHasL2BlockRangeLength(bytes memory callbackData) {
uint256 acceptedL2BlockRangeLength = uint256(bytes32(callbackData));
if (acceptedL2BlockRangeLength != ACCEPTED_L2_BLOCK_RANGE_LENGTH) {
uint256 callbackDataL2BlockRangeLength = uint256(bytes32(callbackData));
if (callbackDataL2BlockRangeLength != ACCEPTED_L2_BLOCK_RANGE_LENGTH) {
revert wrongl2BlockRangeLength(
ACCEPTED_L2_BLOCK_RANGE_LENGTH,
acceptedL2BlockRangeLength
callbackDataL2BlockRangeLength
);
}
_;
Expand Down

0 comments on commit 61c9aca

Please sign in to comment.