From 4d37cdf1dba618ed09ce30718ef6b16ee539ce33 Mon Sep 17 00:00:00 2001 From: fibonacci998 Date: Fri, 4 Oct 2024 15:09:55 +0700 Subject: [PATCH] fix: update hasura metadata --- .../metadata/databases/xstaxy/tables/public_cw20_activity.yaml | 1 + .../metadata/databases/xstaxy/tables/public_erc20_activity.yaml | 1 - src/services/cw20/cw20.service.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hasura/metadata/databases/xstaxy/tables/public_cw20_activity.yaml b/hasura/metadata/databases/xstaxy/tables/public_cw20_activity.yaml index 8df1fd96d..365eb10b8 100644 --- a/hasura/metadata/databases/xstaxy/tables/public_cw20_activity.yaml +++ b/hasura/metadata/databases/xstaxy/tables/public_cw20_activity.yaml @@ -31,5 +31,6 @@ select_permissions: - smart_contract_event_id - to - tx_hash + - tx_id filter: {} limit: 100 diff --git a/hasura/metadata/databases/xstaxy/tables/public_erc20_activity.yaml b/hasura/metadata/databases/xstaxy/tables/public_erc20_activity.yaml index 9208cf2ad..cd5fac5a5 100644 --- a/hasura/metadata/databases/xstaxy/tables/public_erc20_activity.yaml +++ b/hasura/metadata/databases/xstaxy/tables/public_erc20_activity.yaml @@ -29,6 +29,5 @@ select_permissions: - sender - to - tx_hash - - tx_id filter: {} limit: 100 diff --git a/src/services/cw20/cw20.service.ts b/src/services/cw20/cw20.service.ts index fb8471169..dd428b5de 100644 --- a/src/services/cw20/cw20.service.ts +++ b/src/services/cw20/cw20.service.ts @@ -246,7 +246,7 @@ export default class Cw20Service extends BullableService { 'smart_contract_event.id as smart_contract_event_id', 'event:transaction.hash', 'event:transaction.height', - 'tx_id' + 'smart_contract_event.tx_id' ) .orderBy('smart_contract_event.id', 'asc'); }