- Open up a new terminal and start
sanvil
.
sanvil
- Set the environment variables. You can copy our example
.env
file to start.
cd packages/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/Walnut.s.sol:WalnutScript \
--rpc-url $RPC_URL \
--broadcast