From dc58025b5e5f2cb2f0c923725ac2b829936614f2 Mon Sep 17 00:00:00 2001 From: Gabriel Diaz Date: Fri, 31 Jan 2025 14:13:42 -0300 Subject: [PATCH] fix: Update field updatedAt when events transferCreatorship or transferOwnership happens --- src/handlers/collection.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handlers/collection.ts b/src/handlers/collection.ts index 851a3de..4c9fc8b 100644 --- a/src/handlers/collection.ts +++ b/src/handlers/collection.ts @@ -579,6 +579,7 @@ export function handleTransferCreatorship(event: CreatorshipTransferred): void { item.save() } } + collection.updatedAt = event.block.timestamp collection.save() } } @@ -587,6 +588,7 @@ export function handleTransferOwnership(event: OwnershipTransferred): void { let collection = Collection.load(event.address.toHexString()) if (collection != null) { collection.owner = event.params.newOwner.toHexString() + collection.updatedAt = event.block.timestamp collection.save() } }