Skip to content

Commit 9fd5b85

Browse files
committed
docs: add how to run in local devnet
1 parent 6b039f3 commit 9fd5b85

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

examples/L2/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,20 @@ make run_l2
9999
```
100100

101101
You should see a transaction receipt in the console and the stateRoot updated on-chain. You can run this process repeatedly, but make sure to not delete the db file, or the application will not be able to prove valid state transitions.
102+
103+
### Run it on a local devnet
104+
105+
You can also run this example on a local devnet. To get started, navigate to the root of the Aligned repository and run:
106+
107+
```shell
108+
make ethereum_package_start
109+
```
110+
111+
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:
112+
113+
```shell
114+
make gen_env_contract_devnet
115+
make gen_env_l2_devnet
116+
```
117+
118+
Finally, make sure to fund your wallet on Aligned using `NETWORK=devnet`.

0 commit comments

Comments
 (0)