diff --git a/packages/protocol/contracts/L1/libs/LibProposing.sol b/packages/protocol/contracts/L1/libs/LibProposing.sol index ec44bd83743..321d97a4f30 100644 --- a/packages/protocol/contracts/L1/libs/LibProposing.sol +++ b/packages/protocol/contracts/L1/libs/LibProposing.sol @@ -259,8 +259,7 @@ library LibProposing { // Validate the prover assignment, then charge Ether or ERC20 as the // prover fee based on the block's minTier. - uint256 proverFee = - _payProverFeeAndTip( + uint256 proverFee = _payProverFeeAndTip( meta.minTier, meta.blobHash, blk.blockId, params.assignment ); diff --git a/packages/protocol/contracts/L2/TaikoL2.sol b/packages/protocol/contracts/L2/TaikoL2.sol index 4f89872094b..28c9a0331c7 100644 --- a/packages/protocol/contracts/L2/TaikoL2.sol +++ b/packages/protocol/contracts/L2/TaikoL2.sol @@ -72,11 +72,15 @@ contract TaikoL2 is Ownable2StepUpgradeable, TaikoL2Signer, ICrossChainSync { if (block.chainid <= 1 || block.chainid >= type(uint64).max) { revert L2_INVALID_CHAIN_ID(); } - if (block.number > 1) revert L2_TOO_LATE(); - if (block.number > 0) { + if (block.number == 0) { + // This is the case in real L2 genesis + } else if (block.number == 1) { + // This is the case in tests uint256 parentHeight = block.number - 1; l2Hashes[parentHeight] = blockhash(parentHeight); + } else { + revert L2_TOO_LATE(); } gasExcess = _gasExcess;