@indexing/jiti 0.0.51 → 0.0.52

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
@@ -111,9 +111,10 @@ const $bea1ed486f96b980$export$ace043a4f2efe476 = {
111
111
  const changes = tx.changes;
112
112
  for(let ci = 0; ci < changes.length; ci += 1){
113
113
  if (!changes[ci]?.data) continue;
114
- const { address: accountAddress, data: { data: { balance: balance, metadata: metadata, owner: owner }, type: changeType } } = changes[ci];
114
+ const { address: accountAddress, data: { data: changeData, type: changeType } } = changes[ci];
115
+ const { balance: balance, metadata: metadata, owner: owner } = changeData || {};
115
116
  if (changeType === "0x1::fungible_asset::FungibleStore") {
116
- if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data.data.owner;
117
+ if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data?.data?.owner;
117
118
  const to = accountAddressMap[accountAddress];
118
119
  const tokenAddress = metadata?.inner;
119
120
  if (!to || !tokenAddress || to === sender) continue;