Day 32/100
Date: 12/02/23
Goal:
Build a full NFT collection smart contract in Foundry - LW3 Sophomore track
Today's Progress:
- Foundry: learned more about fuzzing and warping
- Contract: added
init()
contract tests, learned about makeAddr Foundry util - Contract: added a variety of success and fail tests for the
mint()
method - Contract: test coverage at 22%
- Foundry: learned about editing the block times and using warp
Thoughts:
- The fact that I'm using an interface contract for the Whitelist confused me a bit. I needed to include this interface in the tests, but how could I pass in an
address
type when all I had was a string. - Resources and videos from thirdweb on Foundry have been incredible.
- Finish the Patrick Collins video on Foundry, but I found it to skip over a lot of interesting things. Needs to spend more time combing through his recommended repo.