I'm going though Patrick's solidity course. I'm on 28:36:52. I'm trying to deploy my subgraph and I'm getting this error.

✖ Failed to deploy to Graph node https://api.studio.thegraph.com/deploy/: subgraph resolve error: resolve error: Serialization error: missing field `name` at line 216 column 3

Can someone explain me what does this error mean and how to resolve it.

This is my 216 line on generated/schema.ts

line 215                         get nftAddress(): Bytes {
line 216                              let value = this.get("nftAddress");
line 217                              return value!.toBytes();

And Nftmarketplace abi under build folder has name getProceeds near line 216. What's wrong?

Everything is auto generated like schema or build folder so they can't be wrong. I have tried deleting and doing everything 2-3 times. But it's not working. What am I missing?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.