Skip to content

Commit

Permalink
Fix query to use scoped index
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Jun 9, 2021
1 parent a90b8f5 commit 1559563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bitcore-node/src/modules/ethereum/api/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export class ETHStateProvider extends InternalStateProvider implements IChainSta
{ chain, network, from: { $in: addressBatch } },
{ chain, network, to: { $in: addressBatch } },
{ chain, network, 'internal.action.to': { $in: addressBatch } },
{ chain, network, 'abiType.params.0.value': { $in: addressBatch.map(address => address.toLowerCase()) } }
{ chain, network, 'abiType.params.0.value': { $in: addressBatch.map(address => address.toLowerCase()) }, 'abiType.type': 'ERC20', 'abiType.name': 'transfer' }
]
},
{ $addToSet: { wallets: params.wallet._id } }
Expand Down

0 comments on commit 1559563

Please sign in to comment.