messari / subgraphs

Standardized subgraphs for blockchain data
MIT License
499 stars 236 forks source link

yearn-v2: Fantom transaction returns incorrect result if reverted #142

Open harsh9200 opened 2 years ago

harsh9200 commented 2 years ago

If a transaction contains a function-scoped revert, trace_transaction fails to calculate the output of the subtraces after the revert that are part of the same transaction. It also seems to be setting gasUsed to 0 for all traces after the revert. This issue applies to the other tracing calls as well.

Ref Issue: https://github.com/Fantom-foundation/go-opera/issues/288 Subgraph URL - https://thegraph.com/hosted-service/subgraph/messari/yearn-v2-fantom

Subgraph failed with non-deterministic error: failed to process trigger: block #21041413 (0x0000…b378), transaction
a44fa1857fa5448419ff94682de1ffeccaa74eb0d6dc9d0de8fe37c6c2a90746: Decoding function outputs for the call 
Function { name: "withdraw", inputs: [], outputs: [Param { name: "", kind: Uint(256), internal_type: None }], 
constant: None, state_mutability: NonPayable } failed, raw output: : Invalid name: please ensure the contract
 and method you're calling exist! failed to decode empty bytes. if you're using jsonrpc this is likely due to 
jsonrpc returning `0x` in case contract or method don't exist
bye43 commented 1 year ago

Tried this again and it failed again, so will be in the backlog