Get started with Abstract by deploying your first smart contract using Foundry.
~/.foundry
. To revert to the standard foundry installation, follow the
Foundry installation
guide.
You can swap between the two installations at any time.Install foundry-zksync
foundryup-zksync
fork:foundryup-zksync
to install forge
, cast
, and anvil
:Common installation issues
foundryup-zksync: command not found
Could not detect shell
foundry
binary to your PATH, run the following command:<your-username-here>
with the correct path to your home directory.Library not loaded: libusb
Verify installation
--zksync
options will be displayed.forge
and change directory into the project.
foundry.toml
file to include the following options:
enable_eravm_extensions
flag in [profile.default.zksync]
to true.src/Counter.sol
file to include the following smart contract:
zkout
directory.
Add your private key
Get an Abscan API key (Mainnet only)
Deploy your smart contract