From ca5313f7e9452533e7caeb3daba648c6ec93f631 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Tue, 17 Dec 2024 08:51:11 -0600 Subject: [PATCH] fix: update ft date on supply change --- 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 `;