From a7a9e6c704980152033c0553f3685aefa315deec Mon Sep 17 00:00:00 2001 From: Coderdan Date: Mon, 4 Nov 2024 17:30:33 +0800 Subject: [PATCH] Update diamond.ts --- src/mappings/diamond.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappings/diamond.ts b/src/mappings/diamond.ts index f19bf24..2f17520 100644 --- a/src/mappings/diamond.ts +++ b/src/mappings/diamond.ts @@ -487,8 +487,8 @@ export function handleTransfer(event: Transfer): void { let id = event.params._tokenId.toString(); let newOwner = getOrCreateUser(event.params._to.toHexString()); newOwner.save(); - let gotchi = getOrCreateAavegotchi(id, event, false); - let portal = getOrCreatePortal(id, false); + let gotchi = getOrCreateAavegotchi(id, event, true); + let portal = getOrCreatePortal(id, true); // ERC721 transfer can be portal or gotchi based, so we have to check it. if (gotchi != null) { if (!gotchi.modifiedRarityScore) {