CRYPTO NEWS

subgraph resolve error: Serialization error: missing field `name`

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?

getting error while calling getrandomnumber in my smart contract

error message: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted { "originalError": { "code": 3, "data": "0x8129bbcd", "message": "execution reverted" } } I’ve done all the necessary things such as sending LINK to my smart contract, deploying my contract. Please::Listen

error message: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted { "originalError": { "code": 3, "data": "0x8129bbcd", "message": "execution reverted" } }

this is my code for smart contract

I’ve done all the necessary things such as sending LINK to my smart contract, deploying my contract. Please let me know what wrong am I doing and how to make it right.

subgraph resolve error: Serialization error: missing field `name`

Shopping cart
There are no products in the cart!
Continue shopping
0