This code is part of the Sophomore Track from LearnWeb3DAO.
This repo contains the Smart Contract part of this project. Head over to this Repo for the client application.
The contract is deployed to Goerli.
In LearnWeb3DAO Smart Contract projects are completed with Hardhat. To challenge me a little bit more and since many Web3 Veterans advocate for switching over to Foundry, I gave it a try.
# up to 5 v's for more verbosity in the console output
forge test -vvv
# To give our shell access to our environment variables
source .env
# To deploy and verify our contract
forge script script/Whitelist.s.sol:WhitelistScript --rpc-url $ALCHEMY_API_KEY_URL --private-key $GOERLI_PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY -vvvv