mapping(address => uint256) amountMintedSoFar;
function presale(bytes calldata _proof) external payable {
require(totalSupply() < MAX_TOKEN_SUPPLY);
require(msg.value == PRICE);
require(validateUser(_proof, msg.sender);
require(amountMintedSoFar[msg.sender] < MAX_PER_USER);
amountMintedSoFar[msg.sender]++;
_mint(msg.sender, totalSupply());
}
Last active
February 7, 2022 22:40
-
-
Save DonkeVerse/2f38b494ddecfa17c2d20972bbacea61 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment