@lumiapassport/ui-kit 1.5.2 → 1.5.3

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
@@ -804,7 +804,7 @@ async function signDigestWithMpc(userId, digest32, userOpDetails) {
804
804
  throw new Error("No access token available for signing");
805
805
  }
806
806
  const transaction = {
807
- to: userOpDetails?.sender || "0x0000000000000000000000000000000000000000",
807
+ to: userOpDetails?.callTarget || "0x0000000000000000000000000000000000000000",
808
808
  value: "0",
809
809
  data: userOpDetails?.callData || "0x",
810
810
  digest32,
@@ -5240,7 +5240,9 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
5240
5240
  maxPriorityFeePerGas: userOp.maxPriorityFeePerGas,
5241
5241
  paymaster: userOp.paymaster,
5242
5242
  factory: userOp.factory,
5243
- factoryData: userOp.factoryData
5243
+ factoryData: userOp.factoryData,
5244
+ callTarget
5245
+ // Add callTarget so iframe can display "To" address
5244
5246
  });
5245
5247
  if (!mpcSig) throw new Error("MPC signing failed");
5246
5248
  signature = mpcSig;
@@ -8516,7 +8518,7 @@ function useLumiaPassportLinkedProfiles() {
8516
8518
  // package.json
8517
8519
  var package_default = {
8518
8520
  name: "@lumiapassport/ui-kit",
8519
- version: "1.5.2",
8521
+ version: "1.5.3",
8520
8522
  description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
8521
8523
  type: "module",
8522
8524
  main: "./dist/index.cjs",