Skip to content

Commit

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

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

if (
state.numBlocks
Expand Down

0 comments on commit 8598d91

Please sign in to comment.