Skip to content

Commit

Permalink
fix: anvil with foundryup (#318)
Browse files Browse the repository at this point in the history
# Description

updates anvil-zksync page to mention it's installed with foundryup.

## Linked Issues


## Additional context

Just simplifying this page for newcomer devs

---------

Co-authored-by: Dustin Brickwood <[email protected]>
  • Loading branch information
uF4No and dutterbutter authored Feb 6, 2025
1 parent 001bfcb commit 0fc99ca
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,25 @@ Moreover it also uses the remote server (openchain) to resolve the ABI and topic

You can visit the `anvil-zksync` repository [to learn more](%%zk_git_repo_era-test-node%%).

## Run actions with `zksync-cli`

You can setup `anvil-zksync` quickly with `zksync-cli dev start`.
If you don't have `zksync-cli` setup, see the [Overview](/build/zksync-cli) guide.
## Install and set up `anvil-zksync`

Note: at the moment this method won't allow you to use additional features like forking networks or replaying transactions.
The Foundry-ZKsync suite installs `anvil-zksync` alongside `forge`, and `cast`. If you haven’t installed Foundry-ZKsync yet, see [Foundry-ZKsync installation](../foundry/installation).

## Install and set up `anvil-zksync`
If you want to install it separately, follow the instructions below:

1. Download `anvil-zksync` from latest [Release](%%zk_git_repo_era-test-node%%/releases/latest).

1. Extract the binary and mark as executable:
2. Extract the binary and mark as executable:

```bash
tar xz -f /path/to/downloaded/binary/anvil-zksync.tar.gz -C /usr/local/bin/
chmod +x /usr/local/bin/anvil-zksync
```

1. Start the node:
To start the `anvil-zksync` node, run

```bash
anvil-zksync run
anvil-zksync
```

The expected output will be as follows:
Expand Down

0 comments on commit 0fc99ca

Please sign in to comment.