Skip to content

Commit 3cccc0e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into dev
2 parents 62e24fc + c1fb35f commit 3cccc0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

basic/08-hardhat-graph/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 流程概述
66

7-
-Ropsten 部署一个合约,并调用触发事件。
7+
-Rinkeby 部署一个合约,并调用触发事件。
88
- 创建定义数据索引的 Subgraph。
99
- 部署 Subgraph 到 TheGraph,实现数据索引。
1010
- 在前端 DApp 中查询索引数据。
@@ -33,7 +33,7 @@ TheGraph 中定义如何为数据建立索引,称为 Subgraph,它包含三
3333
3. 部署合约(用于测试 graph 的简单合约)
3434

3535
```bash
36-
npx hardhat run ./scripts/deploy.js --network ropsten
36+
npx hardhat run ./scripts/deploy.js --network rinkeby
3737
```
3838

3939
输出信息类似如下:
@@ -72,7 +72,7 @@ TheGraph 中定义如何为数据建立索引,称为 Subgraph,它包含三
7272
```
7373

7474
- 在 "Subgraph name""Directory to create the subgraph" 直接回车即可
75-
- Ethereum network 这里选择 ropsten
75+
- Ethereum network 这里选择 rinkeby
7676
- "Contract address" 这里输入在步骤 3 中部署合约时生成的合约地址
7777
- 上面执行到 "fetch ABI from Etherscan" 时会报执行失败,然后出现 "ABI file (path)" 字样,提示输入本机中 abi 的文件路径,这里我们输入 SimpleToken.json 所在的路径即可(`./abis/SimpleToken.json`)
7878
- 如果 yarn install 失败(例如网络错误),可以进入新生成的项目目录,手动安装 npm 依赖

0 commit comments

Comments
 (0)