diff --git a/packages/protocol/contracts/L2/IBlockHash.sol b/packages/protocol/contracts/L2/IBlockHash.sol index 0bf6e1546f3..c1979a2900a 100644 --- a/packages/protocol/contracts/L2/IBlockHash.sol +++ b/packages/protocol/contracts/L2/IBlockHash.sol @@ -5,7 +5,7 @@ pragma solidity ^0.8.27; /// @notice Interface for retrieving block hashes. interface IBlockHash { /// @notice Retrieves the block hash for a given block ID. - /// @param blockId The ID of the block whose hash is being requested. + /// @param _blockId The ID of the block whose hash is being requested. /// @return The block hash of the specified block ID, or 0 if no hash is found. - function getBlockHash(uint256 blockId) external view returns (bytes32); + function getBlockHash(uint256 _blockId) external view returns (bytes32); } diff --git a/packages/protocol/contracts/L2/TaikoL2.sol b/packages/protocol/contracts/L2/TaikoL2.sol index 151313ec92c..dd8d33741e0 100644 --- a/packages/protocol/contracts/L2/TaikoL2.sol +++ b/packages/protocol/contracts/L2/TaikoL2.sol @@ -277,10 +277,7 @@ contract TaikoL2 is EssentialContract, IBlockHash { ); } - /// @notice Retrieves the block hash for the given L2 block number. - /// @param _blockId The L2 block number to retrieve the block hash for. - /// @return The block hash for the specified L2 block id, or zero if the - /// block id is greater than or equal to the current block number. + /// @inheritdoc IBlockHash function getBlockHash(uint256 _blockId) public view returns (bytes32) { if (_blockId >= block.number) return 0; if (_blockId + 256 >= block.number) return blockhash(_blockId);