You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/dev/developer-guides/hello-world.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ yarn hardhat deploy-zksync
159
159
160
160
In the output, you should see the address the contract was deployed to.
161
161
162
-
Congratulations! You have deployed a smart contract to zkSync! Now you can visit the [zkSync block explorer](https://explorer.zksync.io/) and search you contract address to confirm it was successfully deployed.
162
+
Congratulations! You have deployed a smart contract to zkSync! Now you can visit the [zkSync block explorer](https://explorer.zksync.io/) and search your contract address to confirm it was successfully deployed.
163
163
164
164
[This guide](../../api/tools/block-explorer/contract-verification.md) explains how to verify your smart contract using the zkSync block explorer.
165
165
@@ -208,7 +208,7 @@ async getGreeting() {
208
208
},
209
209
210
210
asyncgetFee() {
211
-
//TOOD: return formatted fee
211
+
//TODO: return formatted fee
212
212
return"";
213
213
},
214
214
@@ -263,7 +263,7 @@ Run the following command on the greeter-tutorial-starter root folder to install
263
263
yarn add ethers zksync-web3
264
264
```
265
265
266
-
After that, import both libraries in the `script`part of the `App.vue` file (right before the contract constant). It should look like this:
266
+
After that, import both libraries within the `script`tag of the `App.vue` file (right before the contract constants). It should look like this:
267
267
268
268
```javascript
269
269
import {} from"zksync-web3";
@@ -279,7 +279,8 @@ const GREETER_CONTRACT_ABI = []; // TODO: insert the path to the Greeter contrac
279
279
280
280
Open `./src/App.vue` and set the `GREETER_CONTRACT_ADDRESS` constant equal to the address where the greeter contract was deployed.
281
281
282
-
To interact with the smart contract we just deployed to zkSync, we also need its ABI. ABI stands for Application Binary Interface and, in short, it's a file that describes all available names and types of the smart contract methods to interact with it.
282
+
To interact with the smart contract we just deployed to zkSync, we also need its ABI.
283
+
*ABI* stands for Application Binary Interface and, in short, it's a file that describes all available names and types of the smart contract methods to interact with it.
283
284
284
285
- Create the `./src/abi.json` file.
285
286
- You can get the contract's ABI in the hardhat project folder from the previous section in the `./artifacts-zk/contracts/Greeter.sol/Greeter.json` file. You should copy the `abi` array and paste it into the `abi.json` file created in the previous step. The file should look roughly the following way:
0 commit comments