From 8516ec6246be32211569078ce5f3c148fdf7b3b1 Mon Sep 17 00:00:00 2001 From: 0xdavinchee <0xdavinchee@gmail.com> Date: Thu, 7 Dec 2023 12:27:31 +0200 Subject: [PATCH] fix mapping --- packages/subgraph/src/mappings/flowNFT.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/subgraph/src/mappings/flowNFT.ts b/packages/subgraph/src/mappings/flowNFT.ts index 9ac82c6ebe..a070abf8dd 100644 --- a/packages/subgraph/src/mappings/flowNFT.ts +++ b/packages/subgraph/src/mappings/flowNFT.ts @@ -15,6 +15,7 @@ import { createEventID, initializeEventEntity } from "../utils"; export function handleApproval(event: Approval): void { const eventId = createEventID("Approval", event); const ev = new ApprovalEvent(eventId); + initializeEventEntity(ev, event, []); ev.owner = event.params.owner.toHex(); ev.to = event.params.approved.toHex(); ev.tokenId = event.params.tokenId;