@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/main.js CHANGED
@@ -1856,11 +1856,13 @@ const $7dd402f6ad0dab6a$var$tokenTransfersTemplate = {
1856
1856
  const seenTransfers = new Set();
1857
1857
  transfers = transfers.filter((txfer)=>{
1858
1858
  if (txfer.amount <= BigInt(0)) return false;
1859
- if (_ctx.params.contractAddress && _ctx.params.contractAddress !== txfer.token) return false;
1860
- if (_ctx.params.walletAddress && ![
1861
- txfer.from,
1862
- txfer.to
1863
- ].includes(_ctx.params.walletAddress)) return false;
1859
+ if (_ctx?.params) {
1860
+ if (_ctx.params.contractAddress && _ctx.params.contractAddress !== txfer.token) return false;
1861
+ if (_ctx.params.walletAddress && ![
1862
+ txfer.from,
1863
+ txfer.to
1864
+ ].includes(_ctx.params.walletAddress)) return false;
1865
+ }
1864
1866
  const key = `${txfer.transactionHash}-${txfer.from}-${txfer.to}-${txfer.amount}-${txfer.token}`;
1865
1867
  if (seenTransfers.has(key)) return false;
1866
1868
  seenTransfers.add(key);