Skip to content

Commit

Permalink
Update outdated comment about initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 5, 2023
1 parent d2d01da commit 4ff9426
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions contracts/crowdfund/AuctionCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ contract AuctionCrowdfund is AuctionCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) AuctionCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
function initialize(AuctionCrowdfundOptions memory opts) external payable onlyInitialize {
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/AuctionCrowdfundBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ abstract contract AuctionCrowdfundBase is Crowdfund {
// Set the `Globals` contract.
constructor(IGlobals globals) Crowdfund(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
function _initialize(AuctionCrowdfundOptions memory opts) internal {
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/BuyCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ contract BuyCrowdfund is BuyCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) BuyCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
function initialize(BuyCrowdfundOptions memory opts) external payable onlyInitialize {
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/CollectionBatchBuyCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ contract CollectionBatchBuyCrowdfund is BuyCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) BuyCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
function initialize(
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/CollectionBuyCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ contract CollectionBuyCrowdfund is BuyCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) BuyCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
function initialize(CollectionBuyCrowdfundOptions memory opts) external payable onlyInitialize {
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/InitialETHCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ contract InitialETHCrowdfund is ETHCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) ETHCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param crowdfundOpts Options to initialize the crowdfund with.
/// @param partyOpts Options to initialize the party with.
/// @param customMetadataProvider Optional provider to use for the party for
Expand Down
3 changes: 1 addition & 2 deletions contracts/crowdfund/RollingAuctionCrowdfund.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ contract RollingAuctionCrowdfund is AuctionCrowdfundBase {
// Set the `Globals` contract.
constructor(IGlobals globals) AuctionCrowdfundBase(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param opts Options used to initialize the crowdfund. These are fixed
/// and cannot be changed later.
/// @param allowedAuctionsMerkleRoot_ Merkle root of list of allowed next
Expand Down
3 changes: 1 addition & 2 deletions contracts/party/Party.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ contract Party is PartyGovernanceNFT {
// Set the `Globals` contract.
constructor(IGlobals globals) PartyGovernanceNFT(globals) {}

/// @notice Initializer to be delegatecalled by `Proxy` constructor. Will
/// revert if called outside the constructor.
/// @notice Initializer to be called prior to using the contract.
/// @param initData Options used to initialize the party governance.
function initialize(PartyInitData memory initData) external onlyInitialize {
PartyGovernanceNFT._initialize(
Expand Down

0 comments on commit 4ff9426

Please sign in to comment.