Skip to content

Commit

Permalink
fix: crawl evm contract (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 authored Jul 22, 2024
1 parent 849e596 commit 6eaa98b
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 @@ -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'
)
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 6eaa98b

Please sign in to comment.