openzeppelin-ethernaut: The Ethernautcapture-the-ether: Capture the Etherrareskills: RareSkills/huff-puzzleshuff-challenges: Huff Discord
-
Run tests in sets:
forge test "test/<directory>/*.t.sol" -
Specify which address to use:
cast wallet address --mnemonic <mnemonic-path> --mnemonic-index <index> -
Remember to
--broadcastto send out txs when running deployment script withforge script -
Send ether on calls:
--value <value>, e.g.--value 0.01ether
-
anvil --fork-url <rpc-url> -
If running tests in forked env, remember to
--rpc-url 127.0.0.1:8545(Anvil's default endpoint)
source .envto import secrets in command line
- For test/capture-the-ether/FuzzingIdentity.t.sol, append
--gas-limit 1000000000000toforge testand don't modify the file at all s.t. salt generation can be guaranteed