@indexing/jiti 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -1846,11 +1846,13 @@ const $0ab1acc1eff391f6$var$tokenTransfersTemplate = {
1846
1846
  const seenTransfers = new Set();
1847
1847
  transfers = transfers.filter((txfer)=>{
1848
1848
  if (txfer.amount <= BigInt(0)) return false;
1849
- if (_ctx.params.contractAddress && _ctx.params.contractAddress !== txfer.token) return false;
1850
- if (_ctx.params.walletAddress && ![
1851
- txfer.from,
1852
- txfer.to
1853
- ].includes(_ctx.params.walletAddress)) return false;
1849
+ if (_ctx?.params) {
1850
+ if (_ctx.params.contractAddress && _ctx.params.contractAddress !== txfer.token) return false;
1851
+ if (_ctx.params.walletAddress && ![
1852
+ txfer.from,
1853
+ txfer.to
1854
+ ].includes(_ctx.params.walletAddress)) return false;
1855
+ }
1854
1856
  const key = `${txfer.transactionHash}-${txfer.from}-${txfer.to}-${txfer.amount}-${txfer.token}`;
1855
1857
  if (seenTransfers.has(key)) return false;
1856
1858
  seenTransfers.add(key);