Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/bridge/AbsInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ abstract contract AbsInbox is DelegateCallAware, PausableUpgradeable, IInboxBase
revert GasLimitTooLarge();
}

uint256 submissionFee = calculateRetryableSubmissionFee(data.length, block.basefee);
// we use 0 instead of block.basefee to workaround a geth gas estimation quirk where
// the code path (and hence gas usage) would be different depending on block.basefee
// the final behavior is the same since block.basefee is used when 0 is specified to calculateRetryableSubmissionFee
uint256 submissionFee = calculateRetryableSubmissionFee(data.length, 0);
if (maxSubmissionCost < submissionFee)
revert InsufficientSubmissionCost(submissionFee, maxSubmissionCost);

Expand Down