Skip to content

Commit

Permalink
Make vars immutable where relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Jun 25, 2024
1 parent ce68b5c commit 9f94521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/L2/BaseRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract BaseRegistrar is ERC721, Ownable {
mapping(uint256 id => uint256 expiry) public nameExpires;

/// @notice The Registry contract.
ENS public registry;
ENS public immutable registry;

/// @notice The namehash of the TLD this registrar owns (eg, base.eth).
bytes32 public immutable baseNode;
Expand Down
2 changes: 1 addition & 1 deletion src/L2/discounts/AttestationValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract AttestationValidator is Ownable, AttestationAccessControl, IDiscountVal
address signer;

/// @dev The EAS schema id for Coinbase Verified Accounts.
bytes32 schemaID;
bytes32 immutable schemaID;

/// @notice Attestation Validator constructor
///
Expand Down
4 changes: 2 additions & 2 deletions src/L2/discounts/ERC1155DiscountValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {IDiscountValidator} from "src/L2/interface/IDiscountValidator.sol";
/// @author Coinbase (https://github.com/base-org/usernames)
contract ERC1155DiscountValidator is IDiscountValidator {
/// @notice The ERC1155 token contract to validate against.
IERC1155 token;
IERC1155 immutable token;

/// @notice The ERC1155 token ID of the relevant NFT.
uint256 tokenId;
uint256 immutable tokenId;

/// @notice ERC1155 Discount Validator constructor.
///
Expand Down

0 comments on commit 9f94521

Please sign in to comment.