Skip to content

Commit

Permalink
chore: remove unused solhint disable
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Oct 3, 2024
1 parent 42d3a34 commit 70465db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/bridge/AbsInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ abstract contract AbsInbox is DelegateCallAware, PausableUpgradeable, IInboxBase
bytes calldata messageData
) external whenNotPaused onlyAllowed returns (uint256) {
if (_chainIdChanged()) revert L1Forked();
// solhint-disable-next-line avoid-tx-origin
if (!CallerChecker.isCallerTopLevel()) revert NotTopLevel();
if (messageData.length > maxDataSize) revert DataTooLarge(messageData.length, maxDataSize);
uint256 msgNum = _deliverToBridge(L2_MSG, msg.sender, keccak256(messageData), 0);
Expand Down
1 change: 0 additions & 1 deletion src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
// submit a batch spending report to refund the entity that produced the blob batch data
// same as using calldata, we only submit spending report if the caller is the origin of the tx
// such that one cannot "double-claim" batch posting refund in the same tx
// solhint-disable-next-line avoid-tx-origin
if (CallerChecker.isCallerTopLevel() && !isUsingFeeToken) {
submitBatchSpendingReport(dataHash, seqMessageIndex, block.basefee, blobGas);
}
Expand Down
1 change: 0 additions & 1 deletion src/libraries/GasRefundEnabled.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ abstract contract GasRefundEnabled {
startGasLeft += calldataWords * 6 + (calldataWords ** 2) / 512;
// if triggered in a contract call, the spender may be overrefunded by appending dummy data to the call
// so we check if it is a top level call, which would mean the sender paid calldata as part of tx.input
// solhint-disable-next-line avoid-tx-origin
if (!CallerChecker.isCallerTopLevel()) {
// We can't be sure if this calldata came from the top level tx,
// so to be safe we tell the gas refunder there was no calldata.
Expand Down

0 comments on commit 70465db

Please sign in to comment.