@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/main.js CHANGED
@@ -121,9 +121,10 @@ const $25d5bdd23cba31eb$export$ace043a4f2efe476 = {
121
121
  const changes = tx.changes;
122
122
  for(let ci = 0; ci < changes.length; ci += 1){
123
123
  if (!changes[ci]?.data) continue;
124
- const { address: accountAddress, data: { data: { balance: balance, metadata: metadata, owner: owner }, type: changeType } } = changes[ci];
124
+ const { address: accountAddress, data: { data: changeData, type: changeType } } = changes[ci];
125
+ const { balance: balance, metadata: metadata, owner: owner } = changeData || {};
125
126
  if (changeType === "0x1::fungible_asset::FungibleStore") {
126
- if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data.data.owner;
127
+ if (!accountAddressMap[accountAddress]) accountAddressMap[accountAddress] = changes[ci + 1]?.data?.data?.owner;
127
128
  const to = accountAddressMap[accountAddress];
128
129
  const tokenAddress = metadata?.inner;
129
130
  if (!to || !tokenAddress || to === sender) continue;