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

Missing collectedTokenX on Position GraphQL entity

Open NelsonGaldeman opened this issue 4 years ago • 0 comments

As of last commit eef5b6e15650ac1fece8a637a6e199cdd16f6c7c the Position entity is missing collectedToken0 and collectedToken1 fields

ERROR TS2339: Property 'collectedToken0' does not exist on type '~lib/@graphprotocol/graph-ts/index/TypedMap<~lib/string/String,~lib/@graphprotocol/graph-ts/index/Value>'.

   position.collectedToken0 = position.collectedToken0.plus(amount0)
            ~~~~~~~~~~~~~~~
 in src/mappings/position-manager.ts(171,11)

ERROR TS2339: Property 'collectedToken1' does not exist on type '~lib/@graphprotocol/graph-ts/index/TypedMap<~lib/string/String,~lib/@graphprotocol/graph-ts/index/Value>'.

   position.collectedToken1 = position.collectedToken1.plus(amount1)
            ~~~~~~~~~~~~~~~
 in src/mappings/position-manager.ts(172,11)

NelsonGaldeman avatar Dec 22 '21 12:12 NelsonGaldeman