Skip to content

Commit

Permalink
chore: update contract deployment docs
Browse files Browse the repository at this point in the history
We don't use nx in the contract repo, so these deploy instructions
need a little update.
  • Loading branch information
cpb8010 committed Feb 12, 2025
1 parent e71f93e commit 44c22ab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ To execute the end-to-end tests for the `demo-app` (or similarly for

1. Start `era_test_node` (In a separate terminal, run
`npx zksync-cli dev start`)
2. Deploy the smart contracts, `pnpm nx deploy contracts`
2. Deploy the smart contracts, `pnpm --dir packages/contracts run deploy`

Once the local node is configured with the smart contracts deployed, you can run
the e2e tests:
Expand Down
1 change: 0 additions & 1 deletion docs/nx-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in the workspace's `project.json`, not the directory name.
```bash
pnpm nx <target> <project>
# examples
# pnpm nx deploy contracts
# pnpm nx serve auth-server
# pnpm nx build sdk
```
Expand Down
6 changes: 4 additions & 2 deletions examples/bank-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ Account session and data is stored via the browser Local storage.

## Deploying the Bank demo to Firebase

The Bank demo app uses Demo Node (`https://node.nvillanueva.com`).
The Bank demo app uses Demo Node (`https://node.nvillanueva.com`). Add your
deployer private key to the .env file (packages/contracts/.env)

1. Deploy the latest contracts with
`pnpm nx deploy contracts -- --network demoNode`.

`pnpm --dir packages/contracts run deploy --network demoNode`.

2. Update `nuxt.config.ts` contract addresses under `$production`.

Expand Down
4 changes: 2 additions & 2 deletions examples/nft-quest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Run the following (be sure a local node is running, e.g.
`era_test_node`[https://docs.zksync.io/build/zksync-cli/running-a-node]):

```sh
# Deploy the ZKsync SSO contracts
pnpm nx deploy contracts
# Deploy the ZKsync SSO contracts (when run from the root)
pnpm --dir packages/contracts run deploy

# Deploy the contracts for the NFT Quest Demo
pnpm nx deploy:local nft-quest-contracts
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ZKsync SSO Auth Server
```sh
# Ensure era_test_node is already running (npx zksync-cli dev start)
# Deploy ZKsync SSO smart contracts
pnpm nx deploy contracts
pnpm --dir packages/contracts run deploy

# Start Auth Server
pnpm nx dev auth-server
Expand Down

0 comments on commit 44c22ab

Please sign in to comment.