Skip to content

Commit

Permalink
Merge pull request #119 from OffchainLabs/zero-basefee
Browse files Browse the repository at this point in the history
Support zero basefee for gas estimation
  • Loading branch information
gzeoneth authored Jan 24, 2024
2 parents 6822d51 + e253b8b commit d5d576f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,11 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
if (hostChainIsArbitrum) revert DataBlobsNotSupported();

// submit a batch spending report to refund the entity that produced the blob batch data
submitBatchSpendingReport(
dataHash,
seqMessageIndex,
block.basefee,
blobCost / block.basefee
);
uint256 blobGas = 0;
if (block.basefee > 0) {
blobGas = blobCost / block.basefee;
}
submitBatchSpendingReport(dataHash, seqMessageIndex, block.basefee, blobGas);
}

function addSequencerL2Batch(
Expand Down

0 comments on commit d5d576f

Please sign in to comment.