From 5de9b4978a6986aefbaf44ec2d8086fc638dea5c Mon Sep 17 00:00:00 2001 From: "Taegeon Go (Alan)" Date: Wed, 12 Jun 2024 01:57:38 +0900 Subject: [PATCH] remove XCM txs in getZkEVMTxHistories function --- .../information/recent-history/transfer/index.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/modules/information/recent-history/transfer/index.ts b/src/modules/information/recent-history/transfer/index.ts index 7c721fbd5..e5667d44f 100644 --- a/src/modules/information/recent-history/transfer/index.ts +++ b/src/modules/information/recent-history/transfer/index.ts @@ -201,16 +201,14 @@ export const getZkEVMTxHistories = async ({ network: string; }): Promise => { const txs: TxHistory[] = []; - const histories = [XVM_TX_HISTORIES, XCM_TX_HISTORIES, TX_HISTORIES]; + const storageKey = TX_HISTORIES; - histories.forEach((storageKey) => { - const transactions = getAccountHistories({ - storageKey, - address, - network, - }); - transactions.forEach((it) => txs.push(it)); + const transactions = getAccountHistories({ + storageKey, + address, + network, }); + transactions.forEach((it) => txs.push(it)); const formattedTxs = txs.sort((a, b) => b.timestamp - a.timestamp).slice(0, NumberOfHistories);