我已经部署了一个子图。Codegen 和编译进行得很顺利,但是当我检查子图的索引状态时,我看到以下错误并且不知道该怎么做。它告诉我一个数组有洞,它应该有空值而不是这些洞?然后它似乎告诉我这四个(?)空值是如何创建的。
遇到此类错误时应该寻找什么?
"data": {
"indexingStatuses": [
{
"subgraph": "xyz",
"synced": false,
"health": "failed",
"entityCount": "5",
"fatalError": {
"handler": null,
"message": "Mapping aborted at ~lib/array.ts, line 110, column 40, with message: Element type must be nullable if array is holey\twasm backtrace:\t 0: 0x14db - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.Value#toAddress\t 1: 0x1f06 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.SmartContract#tryCall\t 2: 0x211a - <unknown>!generated/schema/Token#set:symbol\t 3: 0x2f2e - <unknown>!src/mappings/factory/handleNewPairFromUniswap\t in handler `handleNewPair` at block #10093361 (5b5de99460c5f9b8395f69c72bbd38298389836c754de7551fde862dc49b3764)",
"deterministic": true,
"block": {
"hash": "0x5b5de99460c5f9b8395f69c72bbd38298389836c754de7551fde862dc49b3764",
"number": "10093361"
}
}
}
]
}