We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b52c3 commit 321c7fcCopy full SHA for 321c7fc
packages/protocol/contracts/L1/libs/LibUtils.sol
@@ -34,7 +34,7 @@ library LibUtils {
34
/// @param _state The state to initialize.
35
/// @param _genesisBlockHash The block hash of the genesis block.
36
function init(TaikoData.State storage _state, bytes32 _genesisBlockHash) internal {
37
- require(_genesisBlockHash != bytes32(0), L1_INVALID_GENESIS_HASH());
+ require(_genesisBlockHash != 0, L1_INVALID_GENESIS_HASH());
38
// Initialize state
39
_state.slotA.genesisHeight = uint64(block.number);
40
_state.slotA.genesisTimestamp = uint64(block.timestamp);
0 commit comments