Skip to content

Commit

Permalink
Add docs on how to fund local L2 account
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Jun 23, 2023
1 parent 59c1ba7 commit d61c5a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/running_local.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,16 @@ make test-edge
| 0xff0EE8ea08cEf5cb4322777F5CC3E8A584B8A4A0 | L2 Bridge |
| 0x5FbDB2315678afecb367f032d93F642f64180aa3 | Matic token |
| 0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6 | GlobalExitRootManager |


## Fund account on L2 with ETH

If you need account with funds you can use the [deposit script](https://github.com/0xPolygonHermez/zkevm-bridge-service/blob/develop/test/scripts/deposit/main.go)
to fund an account.
For a list with accounts that already have ETH check out [node's docs](https://github.com/0xPolygonHermez/zkevm-node/blob/develop/docs/running_local.md#accounts).

You can exchange the `l1AccHexAddress` and `l1AccHexPrivateKey` and once executing the script with
```
go run test/scripts/deposit/main.go
```
the account that you've specified under `l1AccHexAddress` would have been funded on L2.

0 comments on commit d61c5a8

Please sign in to comment.