Skip to content

Commit

Permalink
fix null from/to for flowNFTs (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdavinchee authored Mar 28, 2024
1 parent a4d33c6 commit ccb0d2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/subgraph/src/mappings/flowNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
MetadataUpdateEvent,
TransferEvent,
} from "../../generated/schema";
import { getOrInitAccount } from "../mappingHelpers";
import { BIG_INT_ONE, createEventID, initializeEventEntity } from "../utils";

export function handleApproval(event: Approval): void {
Expand Down Expand Up @@ -51,6 +52,9 @@ export function handleTransfer(event: Transfer): void {
ev.token = event.address;

ev.save();

getOrInitAccount(event.params.to, event.block);
getOrInitAccount(event.params.from, event.block);
}

export function handleMetadataUpdate(event: MetadataUpdate): void {
Expand Down

0 comments on commit ccb0d2f

Please sign in to comment.