This code was used in shachilog's [definitive] How to implement NFT's arrow list (white list) with smart contracts.
- Foundry
- Contract using ERC721A
- Allowlist using merkle tree
- Free and payable NFT mint
Read document Installation
forge test
Read document Solidity Scripting
1.Start anvil
anvil
2.Copy private key to update $PRIVATE_KEY
forge script script/NftFree.s.sol:NftFreeScript --fork-url http://localhost:8545 --broadcast --private-key $PRIVATE_KEY
forge script script/NftFree.s.sol:NftFreeScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv --private-key $PRIVATE_KEY
Licensed under the MIT license.