[英]Can not build a subgraph: indentation error
I am trying to create a subgraph with the graph-cli
and publish it to the Graph network.我正在尝试使用
graph-cli
创建一个子图并将其发布到 Graph 网络。 Here is my subgraph yaml file:这是我的子图 yaml 文件:
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
– kind: ethereum
name: Contract
network: mainnet
source:
address: “0xc944e90c64b2c07662a292be6244bdf05cda44a7”
abi: Contract
startBlock: 11446769
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
– Transfer
abis:
– name: Contract
file: ./abis/Contract.json
eventHandlers:
– event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/contract.ts
But when I am trying to build the subgraph with the npm run codegen
command I am getting the following error:但是,当我尝试使用
npm run codegen
命令构建子图时,出现以下错误:
But I am not sure how there is an indentation problem.但我不确定如何存在缩进问题。 How can this be resolved?
如何解决?
You are using the wrong dash.您使用了错误的破折号。 You should do
-
rather than –
.你应该做
-
而不是–
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.