diff --git a/src/api/client.ts b/src/api/client.ts index b1ef37d..01e9b25 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -71,7 +71,7 @@ export function getInternalTransactionsByField(params: any[], blockNumber?: stri // fallback to rpc as we don't keep old records older than 34000000 any more in postgres if (!blockNumber || +blockNumber < 34000000) { const queryType = params[1] - if (params[1] !== queryType) { + if (queryType !== 'transaction_hash') { console.error('use only transaction hash to get internal transactions') return [] as InternalTransaction[] }