|
1 | | - |
2 | 1 | Once a smart contract is deployed to zkEVM, it can be verified in various ways depending on the framework of deployment as well as the complexity of the contract. The aim here is to use examples to illustrate how you can manually verify a deployed smart contract. |
3 | 2 |
|
4 | 3 | Ensure that your wallet is connected while following this guide. We will use Metamask wallet throughout this tutorial. |
@@ -27,21 +26,21 @@ After successfully compiling a smart contract, follow the next steps to verify y |
27 | 26 |
|
28 | 27 | #### Using Remix |
29 | 28 |
|
30 | | - In order to flatten the contract code with Remix, one needs to only right-click on the contract name and select **Flatten** option from the drop-down menu that appears. See the below figure for reference. |
| 29 | +In order to flatten the contract code with Remix, one needs to only right-click on the contract name and select **Flatten** option from the drop-down menu that appears. See the below figure for reference. |
31 | 30 |
|
32 | | -  |
| 31 | + |
33 | 32 |
|
34 | | - After selecting **Flatten**, a new `.sol` file with the suffix `_flatten.sol` is automatically created. Copy the contents of the new `<Original-Name>_flatten.sol` file and paste into the `Enter the Solidity Contract` field in the explorer. |
| 33 | +After selecting **Flatten**, a new `.sol` file with the suffix `_flatten.sol` is automatically created. Copy the contents of the new `<Original-Name>_flatten.sol` file and paste into the `Enter the Solidity Contract` field in the explorer. |
35 | 34 |
|
36 | 35 | #### Using Foundry |
37 | 36 |
|
38 | | - In order to flatten the code using Foundry, the following command can be used: |
| 37 | +In order to flatten the code using Foundry, the following command can be used: |
39 | 38 |
|
40 | | - ```bash |
41 | | - forge flatten src/<Contract-Name> -o <Any-Name-For-Flattened-Code>.sol |
42 | | - ``` |
| 39 | +```bash |
| 40 | + forge flatten src/<Contract-Name> -o <Any-Name-For-Flattened-Code>.sol |
| 41 | +``` |
43 | 42 |
|
44 | | - With this command, the flattened code gets saved in the `<Any-Name-For-Flattened-Code>.sol` file. Copy the contents of the new `<Any-Name-For-Flattened-Code>.sol` file and paste into the `Enter the Solodity Contract` field in the [explorer](https://testnet-zkevm.polygonscan.com). |
| 43 | +With this command, the flattened code gets saved in the `<Any-Name-For-Flattened-Code>.sol` file. Copy the contents of the new `<Any-Name-For-Flattened-Code>.sol` file and paste into the `Enter the Solodity Contract` field in the [explorer](https://testnet-zkevm.polygonscan.com). |
45 | 44 |
|
46 | 45 | ??? "Standard input JSON" |
47 | 46 | Click **Next** after selecting the **via Standard Input JSON** option. |
|
0 commit comments