From b30dd9ff576027fbc3e073a97e7a482b022f176e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Th=C3=A0nh=20Phong?= <49814372+phamphong9981@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:02:02 +0700 Subject: [PATCH] fix: crawl evm contract (#857) --- src/services/evm/crawl_contract_evm.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/evm/crawl_contract_evm.service.ts b/src/services/evm/crawl_contract_evm.service.ts index d35acc3d4..59c840294 100644 --- a/src/services/evm/crawl_contract_evm.service.ts +++ b/src/services/evm/crawl_contract_evm.service.ts @@ -62,7 +62,7 @@ export default class CrawlSmartContractEVMService extends BullableService { 'evm_transaction.hash', 'evm_transaction.from', 'evm_transaction.to', - 'evm_transaction.contract_address', + 'evm_transaction.contract_address as contractAddress', 'evm_transaction.data', 'evm_transaction.id' ) @@ -92,7 +92,7 @@ export default class CrawlSmartContractEVMService extends BullableService { evmTxs.forEach((evmTx: any) => { const { data, contractAddress } = evmTx; let currentAddresses: string[] = []; - ['from', 'to', 'contract_address'].forEach((key) => { + ['from', 'to', 'contractAddress'].forEach((key) => { if (evmTx[key] && evmTx[key].startsWith('0x')) { currentAddresses.push(evmTx[key]); if (