Skip to content

Commit

Permalink
Disable initializer (#466)
Browse files Browse the repository at this point in the history
disable initializer
  • Loading branch information
kumaryash90 authored Aug 21, 2023
1 parent 86cd91c commit 308422b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ contract BurnToClaimDropERC721 is
Constructor + initializer logic
//////////////////////////////////////////////////////////////*/

constructor(Extension[] memory _extensions) BaseRouterWithDefaults(_extensions) {}
constructor(Extension[] memory _extensions) BaseRouterWithDefaults(_extensions) {
_disableInitializers();
}

/// @dev Initiliazes the contract, like a constructor.
function initialize(
Expand Down
4 changes: 3 additions & 1 deletion contracts/unaudited/evolving-nfts/EvolvingNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ contract EvolvingNFT is
/// @dev Only MINTER_ROLE holders can sign off on `MintRequest`s.
bytes32 private constant EXTENSION_ROLE = keccak256("EXTENSION_ROLE");

constructor(Extension[] memory _extensions) BaseRouterWithDefaults(_extensions) {}
constructor(Extension[] memory _extensions) BaseRouterWithDefaults(_extensions) {
_disableInitializers();
}

/// @dev Initiliazes the contract, like a constructor.
function initialize(
Expand Down

0 comments on commit 308422b

Please sign in to comment.