Skip to content

ryuji-orca/nft-allowlist-merkle-tree-foundry

Repository files navigation

NFT Allowlist Smart contract Foundry shachilog

About thiis

This code was used in shachilog's [definitive] How to implement NFT's arrow list (white list) with smart contracts.

Features

  • Foundry
  • Contract using ERC721A
  • Allowlist using merkle tree
  • Free and payable NFT mint

Useage

Read document Installation

Testing

forge test

Deploy

Read document Solidity Scripting

Local

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

TestNet

forge script script/NftFree.s.sol:NftFreeScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv --private-key $PRIVATE_KEY

License

Licensed under the MIT license.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published