Web3 Academy Course by Marco Besier at https://membership.marcobesier.com/
# NOTE: can be run with npm run dev.doStartUp
npx hardhat node
// new terminal
npx hardhat run --network localhost scripts/deploy.js
// manually get the deploy addresses and set them in the config.json
npx hardhat run --network localhost scripts/seed_exchange.js
// finally run webserver
npm run start
Foundry - https://book.getfoundry.sh/forge/tests
- Rust implementation
- Foundry is multiple times faster than running jest tests
- Can execute fuzzy testing
- Forge tool provided by Foundry - Eth testing framework
- Manipulate blockchain state
-
https://www.helpmegeek.com/how-to-integrate-foundry-hardhat-project/
-
Run Test with
forge test
vm.prank()
- Can change owner etcvm.expectRevert("message")
- expect revert to occur