Skip to main content
Smart contracts must be compiled to Zksync VM-compatible bytecode using the zksolc compiler to prepare them for deployment on Abstract.
1

Update Hardhat configuration

Ensure your Hardhat configuration file is configured to use zksolc, as outlined in the installation guide:
hardhat.config.ts
2

Compile contracts

Compile your contracts with zksolc:
This will generate the artifacts-zk and cache-zk directories containing the compilation artifacts (including contract ABIs) and compiler cache files respectively.