Skip to content

Commit

Permalink
fix: re-order reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
pop-punk committed Jan 10, 2024
1 parent 0c15e09 commit 17c68d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GasliteNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ contract GasliteNFT is ERC721A, Ownable2Step {
/// @param _amount Amount of NFTs to mint
function publicMint(uint256 _amount) external payable {
if (!live) revert MintNotLive();
if (block.timestamp < whitelistClose) revert PublicMintNotLive();
uint64 minted = _getAux(msg.sender);
if (minted + _amount > maxPublicMint) revert MintExceeded();
if (block.timestamp < whitelistClose) revert PublicMintNotLive();
if (_totalMinted() + _amount > MAX_SUPPLY) revert SupplyExceeded();
if (msg.value != _amount * price) revert InsufficientPayment();

Expand Down

0 comments on commit 17c68d0

Please sign in to comment.