From 94b94868a3808324a0f6c23d0e423886dd143fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A1rdenas?= Date: Tue, 17 Dec 2024 08:56:13 -0600 Subject: [PATCH] fix: update ft date on supply change (#289) --- src/pg/chainhook/chainhook-pg-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg/chainhook/chainhook-pg-store.ts b/src/pg/chainhook/chainhook-pg-store.ts index cda77c3..3d88f5c 100644 --- a/src/pg/chainhook/chainhook-pg-store.ts +++ b/src/pg/chainhook/chainhook-pg-store.ts @@ -243,7 +243,7 @@ export class ChainhookPgStore extends BasePgStoreModule { ): Promise { await sql` UPDATE tokens - SET total_supply = total_supply + ${delta} + SET total_supply = total_supply + ${delta}, updated_at = NOW() WHERE smart_contract_id = (SELECT id FROM smart_contracts WHERE principal = ${contract}) AND token_number = 1 `;