Foundry-zksync Book
View the full documentation for foundry-zksync.
1
Install foundry-zksync
Install the Run You may need to restart your terminal session after installation to continue.
foundryup-zksync fork:foundryup-zksync to install forge, cast, and anvil:Common installation issues
Common installation issues
foundryup-zksync: command not found
foundryup-zksync: command not found
Restart your terminal session.
Could not detect shell
Could not detect shell
To add the Replace
foundry binary to your PATH, run the following command:<your-username-here> with the correct path to your home directory.Library not loaded: libusb
Library not loaded: libusb
The libusb library may need to be installed manually on macOS.
Run the following command to install the library:
2
Verify installation
A helpful command to check if the installation was successful is:If installed successfully, 20 lines of
--zksync options will be displayed.3
Create a new project
Create a new project with
forge and change directory into the project.