Skip to content

Commit

Permalink
fix op-deployer commands
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Nov 16, 2024
1 parent 1a27d54 commit 153b1b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/builders/chain-operators/tools/op-deployer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ Inspect the `state.json` file by navigating to your working directory. With the

```
cd .deployer
op-deployer --workdir .deployer inspect genesis <l2-chain-id> > genesis.json
op-deployer --workdir .deployer inspect rollup <l2-chain-id> > rollup.json
op-deployer inspect genesis --workdir .deployer <l2-chain-id> > genesis.json
op-deployer inspect rollup --workdir .deployer <l2-chain-id> > rollup.json
```

Now that you have your `genesis.json` and `rollup.json` you can spin up a node on your network. You can also use the following inspect subcommands to get additional data:

```
op-deployer --workdir .deployer inspect l1 <l2-chain-id> # outputs all L1 contract addresses for an L2 chain
op-deployer --workdir .deployer inspect deploy-config <l2-chain-id> # outputs the deploy config for an L2 chain
op-deployer --workdir .deployer inspect l2-semvers <l2-chain-id> # outputs the semvers for all L2 chains
op-deployer inspect l1 --workdir .deployer <l2-chain-id> # outputs all L1 contract addresses for an L2 chain
op-deployer inspect deploy-config --workdir .deployer <l2-chain-id> # outputs the deploy config for an L2 chain
op-deployer inspect l2-semvers --workdir .deployer <l2-chain-id> # outputs the semvers for all L2 chains
```
</Steps>

Expand Down

0 comments on commit 153b1b0

Please sign in to comment.