@lumiapassport/ui-kit 1.15.4 → 1.15.6

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.
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>Lumia Passport Secure Wallet - iframe version 1.15.4</title>
18
+ <title>Lumia Passport Secure Wallet - iframe version 1.15.6</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -4402,7 +4402,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4402
4402
  };
4403
4403
 
4404
4404
  // src/iframe/main.ts
4405
- var IFRAME_VERSION = "1.15.4";
4405
+ var IFRAME_VERSION = "1.15.6";
4406
4406
  var IframeWallet = class {
4407
4407
  constructor() {
4408
4408
  console.log("=".repeat(60));
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;
@@ -3881,7 +3881,7 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
3881
3881
  };
3882
3882
  let estimated = false;
3883
3883
  try {
3884
- const gasEst = await (0, import_bundler.estimateUserOperationGas)({ ...userOp, signature: `0x${"00".repeat(65)}` });
3884
+ const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
3885
3885
  console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
3886
3886
  userOp.callGasLimit = gasEst.callGasLimit;
3887
3887
  userOp.verificationGasLimit = gasEst.verificationGasLimit;
@@ -4070,7 +4070,7 @@ async function prepareUserOperation(session, callTarget, amountWei, innerData =
4070
4070
  };
4071
4071
  let estimated = false;
4072
4072
  try {
4073
- const gasEst = await (0, import_bundler.estimateUserOperationGas)({ ...userOp, signature: `0x${"00".repeat(65)}` });
4073
+ const gasEst = await (0, import_bundler.estimateUserOperationGas)(userOp);
4074
4074
  console.log("[Account] Gas estimation from bundler:", { callGasLimit: gasEst.callGasLimit, verificationGasLimit: gasEst.verificationGasLimit, preVerificationGas: gasEst.preVerificationGas });
4075
4075
  userOp.callGasLimit = gasEst.callGasLimit;
4076
4076
  userOp.verificationGasLimit = gasEst.verificationGasLimit;
@@ -5615,7 +5615,7 @@ function Header() {
5615
5615
  // package.json
5616
5616
  var package_default = {
5617
5617
  name: "@lumiapassport/ui-kit",
5618
- version: "1.15.4",
5618
+ version: "1.15.6",
5619
5619
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
5620
5620
  type: "module",
5621
5621
  main: "./dist/index.cjs",
@@ -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
  };