Skip to content

Commit

Permalink
fix : added '_disableInitializers()' in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh Sharma committed Sep 7, 2023
1 parent 7a790c8 commit d2c1701
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ contract RoyaltySplitter is
_disableInitializers();
}

/// @dev this protects the implementation contract from behing initialized.
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}

/// @notice Query if a contract implements interface `id`.
/// @param interfaceId the interface identifier, as specified in ERC-165.
/// @return `true` if the contract implements `id`.
Expand Down

0 comments on commit d2c1701

Please sign in to comment.