Publish and deploy custom contracts on ZkSync
thirdweb CLI now features a --zksync
option which can be used to publish and deploy contracts with both solc and zksolc compiler settings.
To use the option, run publish or deploy commands as below:
npx thirdweb publish --zksync
npx thirdweb deploy --zksync
Please note that the ZkSync compilation requires zksync-hardhat plugin setup in the contracts repository. Regular solidity compilation works with both foundry and hardhat. Please follow this post for more information.
Once the publish or deploy link is generated, contracts can be deployed on any chain, including ZkSync, from the same link or publish page.
Feel free to reach out if there are any issues or questions.