Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 893be50

Browse files
Merge pull request #25 from ProjectOpenSea/internal-initialize
Make init methods internal
2 parents 86cfa67 + 1daee8b commit 893be50

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/upgradeable/DefaultOperatorFiltererUpgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {OperatorFiltererUpgradeable} from "./OperatorFiltererUpgradeable.sol";
66
abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable {
77
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
88

9-
function __DefaultOperatorFilterer_init() public onlyInitializing {
9+
function __DefaultOperatorFilterer_init() internal onlyInitializing {
1010
OperatorFiltererUpgradeable.__OperatorFilterer_init(DEFAULT_SUBSCRIPTION, true);
1111
}
1212
}

src/upgradeable/OperatorFiltererUpgradeable.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ abstract contract OperatorFiltererUpgradeable is Initializable {
1010
IOperatorFilterRegistry constant operatorFilterRegistry =
1111
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
1212

13-
function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) public onlyInitializing {
13+
function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe)
14+
internal
15+
onlyInitializing
16+
{
1417
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
1518
// will not revert, but the contract will need to be registered with the registry once it is deployed in
1619
// order for the modifier to filter addresses.

0 commit comments

Comments
 (0)