@indexing/jiti 0.0.55 → 0.0.56

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
@@ -772,10 +772,10 @@ const $8d6646508fb2fa58$export$b5fd4920e8b7d913 = {
772
772
  const decodedMsg = registry.decode(message);
773
773
  transfers.push({
774
774
  blockNumber: blockNumber,
775
- from: decodedMsg.sender,
776
- to: decodedMsg.receiver,
777
- amount: BigInt(decodedMsg.token?.amount || 0),
778
- token: decodedMsg.token?.denom,
775
+ from: decodedMsg.sender || decodedMsg.fromAddress,
776
+ to: decodedMsg.receiver || decodedMsg.toAddress,
777
+ amount: BigInt(decodedMsg.token?.amount || decodedMsg.amount?.find((a)=>a?.amount)?.amount || 0),
778
+ token: decodedMsg.token?.denom || decodedMsg.amount?.find((a)=>a?.denom)?.denom,
779
779
  tokenType: "NATIVE",
780
780
  timestamp: blockTimestamp,
781
781
  transactionHash: txHash.slice(2).toUpperCase(),