@lumiapassport/ui-kit 1.15.4 → 1.15.5

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/index.cjs CHANGED
@@ -859,7 +859,7 @@ function defaultRpcUrl(network) {
859
859
  return network === "prisma" ? "https://prisma-rpc.lumia.org" : "https://beam-rpc.lumia.org";
860
860
  }
861
861
  function defaultExplorerUrl(network) {
862
- return network === "prisma" ? "https://explorer.lumia.org/" : "https://beam-explorer.lumia.org/";
862
+ return network === "prisma" ? "https://explorer.lumia.org" : "https://beam-explorer.lumia.org";
863
863
  }
864
864
  function getExplorerUrl() {
865
865
  const paramUrl = typeof window !== "undefined" ? new URLSearchParams(window.location.search).get("explorerUrl") || void 0 : void 0;
@@ -13653,6 +13653,10 @@ async function getTransactionsListQuery(address) {
13653
13653
  });
13654
13654
  });
13655
13655
  tokenTransfersData.forEach((transfer, index) => {
13656
+ const txHash = transfer.tx_hash || transfer.transaction_hash;
13657
+ if (!txHash) {
13658
+ return;
13659
+ }
13656
13660
  const rawValue = transfer.total?.value ?? transfer.value ?? "0";
13657
13661
  const amount = toBigInt(rawValue);
13658
13662
  if (amount === 0n) {
@@ -13673,10 +13677,10 @@ async function getTransactionsListQuery(address) {
13673
13677
  const decimals = typeof decimalsRaw === "string" ? parseInt(decimalsRaw, 10) : typeof decimalsRaw === "number" ? decimalsRaw : 18;
13674
13678
  const assetSymbol = transfer.token?.symbol || "Token";
13675
13679
  const tokenItem = {
13676
- id: `token-${transfer.tx_hash}-${index}`,
13680
+ id: `token-${txHash}-${index}`,
13677
13681
  kind: "token",
13678
- hash: transfer.tx_hash,
13679
- parentHash: transfer.tx_hash,
13682
+ hash: txHash,
13683
+ parentHash: txHash,
13680
13684
  direction,
13681
13685
  counterparty,
13682
13686
  counterpartyName: null,
@@ -13756,6 +13760,9 @@ var formatValue2 = (value, decimals = 18) => {
13756
13760
  return `${whole.toString()}.${trimmed}`;
13757
13761
  };
13758
13762
  var openInExplorer2 = (txHash) => {
13763
+ if (!txHash) {
13764
+ return;
13765
+ }
13759
13766
  const explorerUrl = getExplorerUrl();
13760
13767
  window.open(`${explorerUrl}/tx/${txHash}`, "_blank");
13761
13768
  };