From 5aef3d822bb7e739fdd6ceab2222702120d57a31 Mon Sep 17 00:00:00 2001 From: Coderdan Date: Mon, 2 Dec 2024 17:51:03 +0800 Subject: [PATCH] Update diamond.ts --- src/mappings/diamond.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mappings/diamond.ts b/src/mappings/diamond.ts index 639ad2f..23c3338 100644 --- a/src/mappings/diamond.ts +++ b/src/mappings/diamond.ts @@ -507,7 +507,10 @@ export function handleTransfer(event: Transfer): void { log.debug("Syncing metadata for Gotchi {} from socket vault", [ event.params._tokenId.toString(), ]); + + //Update all the gotchi's metadata gotchi = updateAavegotchiInfo(gotchi, event.params._tokenId, event); + gotchi = updateAavegotchiWearables(gotchi, event); } gotchi.owner = newOwner.id;