Skip to content

Commit 51b0b64

Browse files
authored
Add missing steps to deploy locally
1 parent a58b5a7 commit 51b0b64

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

examples/l2/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ Finally [run the l2](#run-the-l2).
121121

122122
## Setup Localnet
123123

124-
You can also run this example on a local devnet. To get started, navigate to the root of the Aligned repository and run:
124+
You can also run this example on a local devnet. To get started, navigate to the root of the Aligned repository
125+
126+
- Start Ethereum package and the Batcher
125127

126128
```shell
127129
# This will start the local net
@@ -130,33 +132,35 @@ make ethereum_package_start
130132
make batcher_start_ethereum_package
131133
```
132134

133-
The remaining steps are the same as for other networks, except you'll be using the `devnet` environment. Specifically, generate the `.env` files for `devnet` using:
135+
- Generate the env files for contracts
134136

135137
```shell
136138
make gen_env_contract_devnet
137139
make gen_env_l2_devnet
138140
```
139141

140-
By default and to make things simpler, the `.env` will be generated using a dev rich wallet. You can of course, creaste your own wallet by following the steps on `1.`. Since the L2 requires a keystore, you'll need to generate it via:
142+
- Generate a pre funded wallet (or create one as specified in the previous readme)
141143

142144
```shell
143145
# This will generate the keystore and fund it on aligned
144146
make gen_devnet_owner_wallet
145147
```
146148

147-
Finally, generate the program id with:
149+
- Generate the program ID of the program that is going to be proven:
148150

149151
```shell
150152
make generate_program_id
151153
```
152154

153-
Copy the address to the generated `.env` and deploy the contract:
155+
- Set the ID on ```contracts/.env```. This will be used to accept only proofs of the desired L2 program
156+
157+
- Deploy the contract
154158

155159
```shell
156160
make deploy_contract
157161
```
158162

159-
Pass the output address in the `.env` and [run the l2](#run-the-l2).
163+
- Pass the output address in the `.env` and [run the l2](#run-the-l2).
160164

161165
## Running the L2
162166

0 commit comments

Comments
 (0)