This is a template for testing proof of concepts and recording vulnerability reports.
NOTICE: This template assumes foundry is installed.
See installation instructions here.
forge install GITHUB_OWNER_NAME/GITHUB_REPOSITORY_NAME
forge test
forge test --fork-url RPC_URL_TO_FORK
forge test -vvvvv
cast interface --etherscan-api-key ETHERSCAN_API_KEY --chain CHAIN_NAME CONTRACT_ADDRESS
cast 4byte 0x70a08231
Prints:
balanceOf(address)
cast 4byte-event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Prints:
Transfer(address,address,uint256)
cast sig "balanceOf(address)"
Prints:
0x70a08231
cast keccak "Transfer(address,address,uint256)"
Prints:
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef