In this article, you will discover the process of deploying a smart contract on the ConsenSys zkEVM testnet. Whether a beginner or an experienced developer, this guide will walk you through the necessary steps. If you are new to ConsenSys zkEVM, it is recommended that you first try the Beta Testnet before proceeding further.
https://mirror.xyz/dimochie.eth/oDlBR1nfeJh4rXgJGO9eM1PuWuyEBwx3gy6TJQuA4gs
Let's get started!
Begin by accessing the Remix toolset ๐๐ป
Remix is a comprehensive suite of tools designed for developing, deploying, debugging, and testing Ethereum and EVM-compatible smart contracts.
Click on the "Create" button and assign a name to your contract, such as "zkEVM Contract."
To deploy a contract on ConsenSys zkEVM, we require an existing contract. This tutorial will use the BUSD token contract as an example. Although any token contract can be used, not all contracts work seamlessly. Therefore, we suggest using BUSD. Below is the source code of the contract that needs to be copied.
https://bscscan.com/token/0xe9e7cea3dedca5984780bafc599bd69add087d56#code
Next, paste the copied source code onto the page of your contract in Remix, then click "OK"
Proceed to the "Solidity compiler" section and click the "Compile" button. ๐๐ป
If everything goes well, a green check mark will appear ๐๐ป
Before deploying the contract, switch to the ConsenSys zkEVM testnet on your Metamask and ensure you have some test ETH to cover the gas fee.
If you have not yet added the ConsenSys zkEVM testnet chain to your Metamask, please refer to this guide before proceeding. Adding the chain requires an API key.
In case you do not have any test ETH on the ConsenSys zkEVM testnet, you can bridge some by using the official bridge from Ethereum Goerli. Here's the link: https://bridge.goerli.zkevm.consensys.net/
Proceed to the "Deploy" page and select "Injected Provider" under the ENVIRONMENT option. Finally, click on the "Deploy" button.
Click the "Confirm" button on the Metamask pop-up to confirm the transaction.
After a successful transaction, your deployed contract will be visible as shown below ๐๐ป
Congratulations! ๐๐ You have successfully deployed a contract on the ConsenSys zkEVM testnet, which may be helpful in the future when ConsenSys releases it on the mainnet.
Thatโs it for now. Make sure to join us on Telegram to remain updated with ConsenSys airdrop and more.