git clone https://github.com/monokrohm/fund-me-solidity.git
cd fund-me-solidity
forge build
$ forge build
$ forge test
Simulate Sepolia chain using anvil
$ forge test --fork-url $SEPOLIA_URL
$ forge test --mt <function> -vvvvv --fork-url <rpc_url>
See how much of the contract is being tested
$ forge coverage --fork-url/--rpc-url <rpc_url>
$ forge fmt
$ forge snapshot
Solidity in terminal
$ chisel
$ anvil
$ forge script script/DeployFundMe.s.sol --rpc-url <rpc_url> --private-key <your_private_key> --broadcast --verify --etherscan-api-key $ETHERSCAN_API_KEY
Run scripts after deploying to a testnet or local net
$ cast send <FUNDME_CONTRACT_ADDRESS> "fund()" --value 0.1ether --private-key <PRIVATE_KEY>
Run a specific contract in a script
$ forge script script/Interactions.s.sol:FundFundMe --rpc-url <rpc_url> --private-key <your_private_key> --broadcast
$ forge --help
$ anvil --help
$ cast --help