- Open up a new terminal and start
sanvil.
sanvil- Set the environment variables. You can copy our example
.envfile to start.
cd contracts/
cp .env.example .env- Ensure contract tests are passing. From this directory, run
sforge build
sforge test- Deploy the contract.
source .env
sforge script script/ClownBeatdown.s.sol:ClownBeatdownScript \
--rpc-url $RPC_URL \
--broadcast