- git
- You'll know you did it right if you can run
git --versionand you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --versionand you see a response likeforge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)
- You'll know you did it right if you can run
git clone https://github.com/Cyfrin/foundry-smart-contract-lottery-cu
cd foundry-smart-contract-lottery-cu
forge build
make anvil
If you're having a hard time installing the chainlink library, you can optionally run this command.
forge install smartcontractkit/chainlink-brownie-contracts@1.3.0 --no-commit
This will default to your local node. You need to have it running in another terminal in order for it to deploy.
make deploy
forge test
or
forge test --fork-url $SEPOLIA_RPC_URL
forge coverage
