run:
forge init
forge build
forge test
#test specific function with log
forge test -vvv -m <functionName>
#test all functions in a contract
forge test --match-contract <contractName>
This project uses Foundry. See the book for instructions on how to install and use Foundry.
Deploy and verify a contract
# To load the variables in the .env file
source .env
# To deploy and verify our contract
forge script script/WikiNoValidator.s.sol:WikiNoValidator --rpc-url $RINKEBY_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv --gas-price 60 --legacy