A fork of the hashlips ERC721 collection repo modified public sale option to include a hybrid of free and paid mints.
This project was created for educational purposes, please refer to the LICENCE file for further information.
A public sale with free and paid mints. When the free mint supply is exhausted the contract switches to paid mints.
Please refer to the hashlips ERC721 collection for excellent video's.
Please refer to the hashlips ERC721 collection for excellent video's.
This project follows the hashlips ERC721 collection set-up and deployment process for a seamless free mint to paid mint set-up.
Before deploying the contract update CollectionFonfig.ts
Step | Description | Field to update |
---|---|---|
01 |
Set the free mint supply | maxFreeMintSupply: 10 |
02 |
Set the mint cost to be used after free mints are exhausted | publicSale: { price: 0.0042069, |
03 |
Set the maximum mints per transaction to be used after free mints are exhausted | publicSale: { maxMintAmountPerTx: 2, |
Step | Description |
---|---|
01 |
Open the public sale, run script: public-sale-open |
02 |
Head over to your contract on etherscan |
03 |
Set the number of max free mints per transaction using function: setMaxFreeMintAmountPerTxn |
04 |
Active the free mint option using function: setHasFreeMint to set _state to true |
The contract is now setup for partial free mints. When the free mint supply is exhausted the contract will switch to the paid mint model
For a detailed start to finish set-up, deploy, and demo checkout the you tube video located here