From db4efc00e5201cb628ef7a6b18fcb8314879021e Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Thu, 9 May 2024 09:19:01 -0500 Subject: [PATCH] database: efficiency change --- database/scripts/backfillTransferData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/scripts/backfillTransferData.ts b/database/scripts/backfillTransferData.ts index be273367..7fd95f51 100644 --- a/database/scripts/backfillTransferData.ts +++ b/database/scripts/backfillTransferData.ts @@ -18,7 +18,7 @@ import { createTokenMetadata, createTokenTransfer, } from '../src'; -import { chainToChainId, toChain } from '@wormhole-foundation/sdk-base'; +import { toChainId } from '@wormhole-foundation/sdk-base'; import { blindDeserializePayload, deserialize } from '@wormhole-foundation/sdk'; const PG_USER = assertEnvironmentVariable('PG_USER'); @@ -68,7 +68,7 @@ const getStatusString = ( const tokenBridgeEmitters = Object.entries(TOKEN_BRIDGE_EMITTERS); for (const [chain, emitter] of tokenBridgeEmitters) { log.start(); - const paddedChainId = padUint16(chainToChainId(toChain(chain)).toString()); + const paddedChainId = padUint16(toChainId(chain).toString()); let start = `${paddedChainId}/${emitter}/`; const end = `${start}z`; let numRowsRead = 0;