Skip to content

Commit

Permalink
add solhint ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Jun 4, 2024
1 parent 9cdc706 commit a32278d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions l2-contracts/contracts/bridge/L2StandardERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,21 @@ contract L2StandardERC20 is ERC20PermitUpgradeable, IL2StandardToken, ERC1967Upg

function name() public view override returns (string memory) {
// If method is not available, behave like a token that does not implement this method - revert on call.
// solhint-disable-next-line reason-string, gas-custom-errors
if (availableGetters.ignoreName) revert();
return super.name();
}

function symbol() public view override returns (string memory) {
// If method is not available, behave like a token that does not implement this method - revert on call.
// solhint-disable-next-line reason-string, gas-custom-errors
if (availableGetters.ignoreSymbol) revert();
return super.symbol();
}

function decimals() public view override returns (uint8) {
// If method is not available, behave like a token that does not implement this method - revert on call.
// solhint-disable-next-line reason-string, gas-custom-errors
if (availableGetters.ignoreDecimals) revert();
return decimals_;
}
Expand Down

0 comments on commit a32278d

Please sign in to comment.