v3-subgraph icon indicating copy to clipboard operation
v3-subgraph copied to clipboard

Transactions are reporting gas limit rather than gas used.

Open johnfriz opened this issue 3 years ago • 4 comments

The transaction object has a gasUsed field. However, the value being returned in this field is actually the gas limit, not the gas used.

See attached screenshots.

Screenshot 2021-06-27 at 00 58 56 Screenshot 2021-06-27 at 00 59 47

johnfriz avatar Jun 27 '21 00:06 johnfriz

Hello, thanks for noticing. There doesn't seem to be a bug in the subgraph code (see relevant line) so I am assuming there is something going on in the graph API. I asked graph support here to figure out whether it's a bug in the mappings library.

Best, Jan

benesjan avatar Jun 27 '21 08:06 benesjan

This is caused by a bug in graph-ts: https://github.com/graphprotocol/graph-ts/issues/80

benesjan avatar Jun 27 '21 12:06 benesjan

Hi @benesjan , it seems like graph-ts solved it. Is this also going to be fixed on the Uniswap side? Also seems that the transaction object now holds more information (like the events for example)

kazazor avatar Dec 20 '22 12:12 kazazor

still having this issue!

yamiyukiharu avatar May 22 '23 14:05 yamiyukiharu