Skip to content

Commit

Permalink
Revert "remove gasLimit from input"
Browse files Browse the repository at this point in the history
This reverts commit 8598d91.
  • Loading branch information
dantaik committed Aug 5, 2023
1 parent 6c89ff3 commit ff23530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/protocol/contracts/L1/TaikoData.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ library TaikoData {
uint64 numEthDeposits;
}

// 2 slots
// 3 slots
struct BlockMetadataInput {
bytes32 txListHash;
address beneficiary;
uint32 gasLimit;
uint24 txListByteStart; // byte-wise start index (inclusive)
uint24 txListByteEnd; // byte-wise end index (exclusive)
bool cacheTxListInfo;
Expand Down
6 changes: 5 additions & 1 deletion packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ library LibProposing {
view
returns (bool cacheTxListInfo)
{
if (input.beneficiary == address(0)) revert L1_INVALID_METADATA();
if (
input.beneficiary == address(0)
//
|| input.gasLimit == 0
) revert L1_INVALID_METADATA();

if (
state.numBlocks
Expand Down

0 comments on commit ff23530

Please sign in to comment.