Skip to content

Commit

Permalink
fix: remove some unnused comments reorder in waveSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Adjimann committed Sep 11, 2024
1 parent 31ba142 commit ababe9b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/avatar/contracts/nft-collection/NFTCollection.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,27 @@ INFTCollection
/**
* @notice maximum amount of tokens that can be minted
*/
uint256 maxSupply; // public
uint256 maxSupply;

/**
* @notice treasury address where the payment for minting are sent
*/
address mintTreasury; // public
address mintTreasury;

/**
* @notice standard base token URL for ERC721 metadata
*/
string baseTokenURI; // public
string baseTokenURI;

/**
* @notice max tokens to buy per wave, cumulating all addresses
*/
uint256 waveMaxTokensOverall; // public
uint256 waveMaxTokensOverall;

/**
* @notice max tokens to buy, per wallet in a given wave
*/
uint256 waveMaxTokensPerWallet; // public
uint256 waveMaxTokensPerWallet;

/**
* @notice price of one token mint (in the token denoted by the allowedToExecuteMint contract)
Expand All @@ -93,28 +93,28 @@ INFTCollection
/**
* @notice number of total minted tokens in the current running wave
*/
uint256 waveTotalMinted; // public
uint256 waveTotalMinted;

/**
* @notice mapping of [owner -> wave index -> minted count]
*/
mapping(address => mapping(uint256 => uint256)) waveOwnerToClaimedCounts; // public
mapping(address => mapping(uint256 => uint256)) waveOwnerToClaimedCounts;

/**
* @notice each wave has an index to help track minting/tokens per wallet
*/
uint256 indexWave; // public
uint256 indexWave;

/**
* @notice ERC20 contract through which the minting will be done (approveAndCall)
* When there is a price for the minting, the payment will be done using this token
*/
IERC20 allowedToExecuteMint; // public
IERC20 allowedToExecuteMint;

/**
* @notice all signatures must come from this specific address, otherwise they are invalid
*/
address signAddress; // public
address signAddress;

/**
* @notice stores the personalization mask for a tokenId
Expand All @@ -131,7 +131,7 @@ INFTCollection
/**
* @notice total amount of tokens minted till now
*/
uint256 totalSupply; // public
uint256 totalSupply;
}

/// @custom:storage-location erc7201:thesandbox.storage.avatar.nft-collection.NFTCollection
Expand Down Expand Up @@ -873,10 +873,10 @@ INFTCollection
) {
revert InvalidWaveData(_waveMaxTokensOverall, _waveMaxTokensPerWallet);
}
emit WaveSetup(_msgSender(), _waveMaxTokensOverall, _waveMaxTokensPerWallet, _waveSingleTokenPrice, $.waveTotalMinted, $.indexWave);
$.waveMaxTokensOverall = _waveMaxTokensOverall;
$.waveMaxTokensPerWallet = _waveMaxTokensPerWallet;
$.waveSingleTokenPrice = _waveSingleTokenPrice;
emit WaveSetup(_msgSender(), _waveMaxTokensOverall, _waveMaxTokensPerWallet, _waveSingleTokenPrice, $.waveTotalMinted, $.indexWave);
$.waveTotalMinted = 0;
$.indexWave++;
}
Expand Down

0 comments on commit ababe9b

Please sign in to comment.