Publish and deploy custom contracts on ZkSync
Yash Kumar
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:
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.