Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit d3aeaf6

Browse files
authored
revert merge (#170)
* Revert "updated content (#164)" This reverts commit a3323f2. * updated styling for back to top button * remove unused css
1 parent a3323f2 commit d3aeaf6

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

docs/.vuepress/theme/components/Home.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ export default {
104104
</script>
105105

106106
<style lang="stylus">
107+
.go-to-top {
108+
cursor: pointer;
109+
position: fixed;
110+
bottom: 2rem;
111+
right: 1.5rem !important;
112+
width: 1.5rem !important;
113+
color: #fff !important;
114+
background-color: #797afb !important;
115+
border-radius: 10px !important;
116+
padding: 10px;
117+
z-index: 1;
118+
}
119+
107120
.search-box {
108121
order: 1;
109122
margin-right: 0;

docs/dev/developer-guides/hello-world.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ yarn hardhat deploy-zksync
159159

160160
In the output, you should see the address the contract was deployed to.
161161

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.
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.
163163

164164
[This guide](../../api/tools/block-explorer/contract-verification.md) explains how to verify your smart contract using the zkSync block explorer.
165165

@@ -208,7 +208,7 @@ async getGreeting() {
208208
},
209209

210210
async getFee() {
211-
// TODO: return formatted fee
211+
// TOOD: return formatted fee
212212
return "";
213213
},
214214

@@ -263,7 +263,7 @@ Run the following command on the greeter-tutorial-starter root folder to install
263263
yarn add ethers zksync-web3
264264
```
265265

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:
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:
267267

268268
```javascript
269269
import {} from "zksync-web3";
@@ -279,8 +279,7 @@ const GREETER_CONTRACT_ABI = []; // TODO: insert the path to the Greeter contrac
279279

280280
Open `./src/App.vue` and set the `GREETER_CONTRACT_ADDRESS` constant equal to the address where the greeter contract was deployed.
281281

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.
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.
284283

285284
- Create the `./src/abi.json` file.
286285
- 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:
@@ -338,21 +337,19 @@ const GREETER_CONTRACT_ABI = require("./abi.json");
338337

339338
### Working with provider
340339

341-
1. Import the necessary dependencies:
340+
1. Go to the `initializeProviderAndSigner` method in `./src/App.vue`. This method is called after the connection to Metamask is successful.
342341

343-
```javascript
344-
import { Contract, Web3Provider, Provider } from "zksync-web3";
345-
```
346-
347-
2. Locate the `initializeProviderAndSigner` method in `./src/App.vue`.
348-
349-
*Note:* This method is called only after the connection to Metamask is successful.
350-
351-
In this method we would do the following:
342+
In this method we should:
352343

353344
- Initialize a `Web3Provider` and a `Signer` to interact with zkSync.
354345
- Initialize the `Contract` object to interact with the `Greeter` contract we just deployed.
355346

347+
2. Import the necessary dependencies:
348+
349+
```javascript
350+
import { Contract, Web3Provider, Provider } from "zksync-web3";
351+
```
352+
356353
3. Initialise the provider, signer, and contract instances like this:
357354

358355
```javascript
@@ -407,7 +404,7 @@ The chosen token to pay the fee can now be selected. However, no balances are up
407404

408405
The easiest way to retrieve the user's balance is to use the `Signer.getBalance` method.
409406

410-
1. Add the necessary dependencies at the top of the script file:
407+
1. Add the necessary dependencies:
411408

412409
```javascript
413410
// `ethers` is only used in this tutorial for its utility functions

0 commit comments

Comments
 (0)