Skip to content

Commit 1b48a0c

Browse files
authored
Merge pull request #1043 from yingjingyang/main
fix readme
2 parents 9fc4d80 + adfb902 commit 1b48a0c

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

basic/01-web3js-deploy/README-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ https://ithelp.ithome.com.tw/articles/10202794 在成功创建 Infura Project
1414
- 同时在 BiliBili 上有上传本样例代码的讲解演示:
1515
https://www.bilibili.com/video/BV1Y44y1r7E6/
1616

17-
- 测试Node版本:v20.11.0
1817

1918
## 合约功能说明
2019
constructor: 构造函数, 用于部署合约时调用, 同时在其中初始化了公共变量 number 的值
@@ -24,8 +23,9 @@ getNumber: 查询函数, 用于查询公共变量 number 当前的数值
2423

2524
## 测试流程:
2625
1) 安装依赖
27-
```
26+
```js
2827
npm install
28+
// 本教程使用的 node 版本为 v20.11.0
2929
```
3030

3131
2) 配置 .env

basic/01-web3js-deploy/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Through this basic task, you can learn the processes of compiling and deploying
2727

2828
- If you know Chinese, you can check these tasks on [BILIBILI](https://www.bilibili.com/video/BV1Y44y1r7E6/).
2929

30-
- Node Version:v20.11.0
3130

3231
# Getting Started
3332

@@ -40,14 +39,15 @@ Through this basic task, you can learn the processes of compiling and deploying
4039

4140
## How to run it
4241

43-
1. Install dependencies: `npm install`
44-
2. Copy the configuration file: `cp .env.example .env`
45-
3. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file
42+
1. Please use node v20.11.0 to run following commands
43+
2. Install dependencies: `npm install`
44+
3. Copy the configuration file: `cp .env.example .env`
45+
4. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file
4646
```text
4747
PRIVATE_KEY=YOUR_PRIVATE_KEY
4848
INFURA_ID=YOUR_PROJECT_ID
4949
```
50-
4. Run the `index.js` file: `node index.js`
50+
5. Run the `index.js` file: `node index.js`
5151

5252
# Interpret the Code in `index.js`
5353

basic/02-web3js-transaction/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Abstract
33
The demo code provides developers with an overview of how to sign, send, and receive receipt of transactions, and verify the results of their execution. The sample also provides the event monitoring code so that the developer can understand how to listen to an event one or more times.
44

5-
--Node Version:v20.11.0
6-
75
# Getting Started
86

97
## Understanding The Functions of the [Smart Contract](Incrementer.sol)
@@ -14,14 +12,15 @@ The demo code provides developers with an overview of how to sign, send, and rec
1412

1513
## How to run it
1614

17-
1. Install dependencies: `npm install`
18-
2. Copy the configuration file: `cp .env.example .env`
19-
3. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file.
15+
1. Please use node v20.11.0 to run following commands
16+
2. Install dependencies: `npm install`
17+
3. Copy the configuration file: `cp .env.example .env`
18+
4. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file.
2019
```text
2120
PRIVATE_KEY=YOUR_PRIVATE_KEY
2221
INFURA_ID=YOUR_PROJECT_ID
2322
```
24-
4. Run the `index.js` file: `node index.js`
23+
5. Run the `index.js` file: `node index.js`
2524
2625
# Interpret Source Code
2726
## `compile.js`

basic/03-web3js-erc20/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
This basic task is to show how to interact with ERC20 contract, so the developer can understand the basic interface of ERC20 contract.
66

7-
--Node Version:v20.11.0
8-
97
## Getting started
108
### SimpleToken contract function description
119

@@ -24,14 +22,15 @@ This basic task is to show how to interact with ERC20 contract, so the developer
2422

2523

2624
### How to run it
27-
1. Install dependencies: `npm install`
28-
2. Copy the configuration file: `cp .env.example .env`
29-
3. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file.
25+
1. Please use node v20.11.0 to run following commands
26+
2. Install dependencies: `npm install`
27+
3. Copy the configuration file: `cp .env.example .env`
28+
4. Edit the configuration file: `vim .env`, copy your project ID and private key to the `.env` file.
3029
```text
3130
PRIVATE_KEY=YOUR_PRIVATE_KEY
3231
INFURA_ID=YOUR_PROJECT_ID
3332
```
34-
4. Run the `index.js` file: `node index.js`
33+
5. Run the `index.js` file: `node index.js`
3534
3635
## Interpret Source Code
3736

0 commit comments

Comments
 (0)