From 521934305844f8533b82cbde327eb5f6be6dbf17 Mon Sep 17 00:00:00 2001 From: phamphong9981 Date: Fri, 19 Jul 2024 17:19:34 +0700 Subject: [PATCH] fix: crawl evm contract --- 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 148be5f93..991d80110 100644 --- a/src/services/evm/crawl_contract_evm.service.ts +++ b/src/services/evm/crawl_contract_evm.service.ts @@ -60,7 +60,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' ) @@ -90,7 +90,7 @@ export default class CrawlSmartContractEVMService extends BullableService { const isCreationInternalContracts: Dictionary = {}; evmTxs.forEach((evmTx: any) => { 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]); }