subgraphs icon indicating copy to clipboard operation
subgraphs copied to clipboard

yearn-v2: Fantom transaction returns incorrect result if reverted

Open harsh9200 opened this issue 3 years ago • 1 comments

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

harsh9200 avatar May 04 '22 13:05 harsh9200

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

bye43 avatar Feb 06 '23 19:02 bye43