/Whitelist-DApp_Contract

This code is part of the Sophomore Track from LearnWeb3DAO.

Primary LanguageSolidity

Whitelist dApp - Level 8 Sophomore Track

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.

Foundry instead of Hardhat

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.

Test contract

# up to 5 v's for more verbosity in the console output

forge test -vvv

Deploy contract

# 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