Skip to content

Commit

Permalink
fix: crawl evm contract (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 authored Jul 24, 2024
1 parent 41d00a5 commit eeaff7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/evm/crawl_contract_evm.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand Down Expand Up @@ -90,7 +90,7 @@ export default class CrawlSmartContractEVMService extends BullableService {
const isCreationInternalContracts: Dictionary<boolean> = {};
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]);
}
Expand Down

0 comments on commit eeaff7a

Please sign in to comment.