Skip to content

Commit

Permalink
chore(zk-chains): add script for removing the environment (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion authored May 23, 2024
1 parent 41366da commit 8d073e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,13 @@ Make sure to get the correct bridgehub address (in this example: 0x35A3783781DE0

```shell
cast send -r http://localhost:15045 --private-key 0x27593fea79697e947890ecbecce7901b0008345e5d7259710d0dd5e500d040be 0x35A3783781DE026E1e854A6DA45d7a903664a9dA "requestL2TransactionDirect((uint256, uint256, address, uint256, bytes, uint256, uint256, bytes[], address))" "(270,0xde0b6b3a7640000,0x005C43B2063625e9425943Fec65c42d005a2cD1f,10000000000000,"",10000000,800,[0x1234567890123456789012345678901234567890123456789012345678901234],0x005C43B2063625e9425943Fec65c42d005a2cD1f)" --value=1000000000000000000
```
```

### Resetting zkSync state

To reset the zkSync state, just run:

```shell
./clear-zk-chains.sh
```

3 changes: 3 additions & 0 deletions clear-zk-chains.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker compose -f zk-chains-docker-compose.yml down --volumes

0 comments on commit 8d073e6

Please sign in to comment.