From 6eaa98b43c1b5b0be46c4154b2c619942a980bcb 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: Mon, 22 Jul 2024 08:55:53 +0700 Subject: [PATCH] fix: crawl evm contract (#856) --- 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 1e425be20..6a5041bcd 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 (