Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
d1onys1us authored Mar 6, 2023
1 parent 1f5c432 commit a1e817e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
2. Clone repo (eg. `git clone https://github.com/repo_name`) and `cd <repo_name>`
3. Execute the setup script `sh setup.sh` (installs foundry deps, node deps, copies env files)
4. [Obtain a mnemonic](https://iancoleman.io/bip39/) for test accounts.
a. Set mnemonic phrase in `packages/.env`
- Set mnemonic phrase in `packages/.env`
5. [Obtain a project id for web3modal](https://cloud.walletconnect.com/sign-in).
a. Set web3modal project id in `packages/app/.env`
- Set web3modal project id in `packages/app/.env`
6. Load environment files: `source .env && source packages/app/.env`

Now you're environment is ready to go! Use these commands to get started deploying a contract and start buidling.

1. Start local chain: `anvil -m $MNEMONIC`
2. Start ABI generation in separate window: `pnpm wagmi generate --watch ../contracts/broadcast/`
3. Deploy the Foo contract: `forge script Deploy --broadcast --rpc-url $ANVIL`
3. Deploy the Foo contract: `forge script Deploy --broadcast --rpc-url $FOUNDRY`
4. Start app: `pnpm -F app dev`

## Common commands
Expand Down

1 comment on commit a1e817e

@vercel
Copy link

@vercel vercel bot commented on a1e817e Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.