Replies: 1 comment 2 replies
-
Hey @RafaDSan, where you able to fix this? Looking through the code I think you might need to actually trigger a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basic explanation of the problem
I'm working on a local subgraph for tracking events on an Ethereum smart contract. I aim to query specific entities, but I'm encountering a
null
result when attempting to do so. I am stuck on this for days and am just a noob yet, so I would greatly appreciate your help.The result:
{ "data": { "taskCreated": null } }
Steps to reproduce the problem
I am following the tutorial https://mirror.xyz/cryptomastery.eth/uGHEHnskoVwX-mWjAiidXfGt6QowCoKl_yX4okwZc0E which basically teaches how to plug and play this repo, which worked just fine. Then I adapted the code to use my smart contracts and I configured the subgraphs files as follows:
My query:
schema.graphql
subgraph.yaml
My event created:
My function to test emit it:
My deploy script:
Hardhat log:
Contract call:
Transaction: 0x9ea259f119cc8008d5cdae60e40f64c4c001467600f3e6d2c84e017c5b63790a
From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
To: 0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9
Value: 0 ETH
Gas used: 28797 of 28797
Block #6: 0x9450f9a4d2bd50799d3dadaf8ecbe32a74be5e6c426c1ae09235d71f1a8e7775
eth_chainId
eth_getTransactionByHash
eth_getBlockByNumber
eth_getBlockByHash
eth_getTransactionReceipt
eth_getBlockByHash
eth_getTransactionReceipt
eth_getBlockByNumber (75)
eth_chainId
eth_getBlockByNumber (1466)
Any ideas on what could be causing this result?
Beta Was this translation helpful? Give feedback.
All reactions