Skip to content

Commit

Permalink
Check blockhash is non-zero (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog authored Nov 14, 2024
1 parent 86c9abe commit b91fac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DeployChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ contract DeployChain {
DeployAddresses memory addresses
) internal view returns (Hashes memory) {
bytes32 genesisL1Hash = blockhash(uint256(genesisConfig.l1Number));
require(genesisL1Hash != bytes32(0), "DeployChain: genesis blockhash not available");

bytes32 scalar =
bytes32((uint256(0x01) << 248) | (uint256(gasConfig.blobbasefeeScalar) << 32) | gasConfig.basefeeScalar);

Expand Down

0 comments on commit b91fac6

Please sign in to comment.