Skip to content

Commit

Permalink
Update markets/perps-market/subgraph/src/market.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Noisekit <[email protected]>
  • Loading branch information
Tburm and noisekit authored Aug 7, 2023
1 parent 8cc60ac commit 64684cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions markets/perps-market/subgraph/src/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export function handleMarketUpdated(event: MarketUpdatedEvent): void {
market.save();

// create MarketUpdated entity
const marketUpdatedid =
const marketUpdatedId =
event.params.marketId.toString() +
'-' +
event.block.number.toString() +
'-' +
event.logIndex.toString();

let marketUpdated = new MarketUpdated(marketUpdatedid);
let marketUpdated = new MarketUpdated(marketUpdatedId);

marketUpdated.timestamp = event.block.timestamp;
marketUpdated.marketId = event.params.marketId;
Expand Down

0 comments on commit 64684cc

Please sign in to comment.