@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/iframe/index.html +12 -17
- package/dist/iframe/main.js +114 -49
- package/dist/iframe/main.js.map +1 -1
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -793,7 +793,7 @@ async function signDigestWithMpc(userId, digest32, userOpDetails) {
|
|
|
793
793
|
throw new Error("No access token available for signing");
|
|
794
794
|
}
|
|
795
795
|
const transaction = {
|
|
796
|
-
to: userOpDetails?.
|
|
796
|
+
to: userOpDetails?.callTarget || "0x0000000000000000000000000000000000000000",
|
|
797
797
|
value: "0",
|
|
798
798
|
data: userOpDetails?.callData || "0x",
|
|
799
799
|
digest32,
|
|
@@ -5247,7 +5247,9 @@ async function sendUserOperation(session, callTarget, amountWei, innerData = "0x
|
|
|
5247
5247
|
maxPriorityFeePerGas: userOp.maxPriorityFeePerGas,
|
|
5248
5248
|
paymaster: userOp.paymaster,
|
|
5249
5249
|
factory: userOp.factory,
|
|
5250
|
-
factoryData: userOp.factoryData
|
|
5250
|
+
factoryData: userOp.factoryData,
|
|
5251
|
+
callTarget
|
|
5252
|
+
// Add callTarget so iframe can display "To" address
|
|
5251
5253
|
});
|
|
5252
5254
|
if (!mpcSig) throw new Error("MPC signing failed");
|
|
5253
5255
|
signature = mpcSig;
|
|
@@ -8490,7 +8492,7 @@ function useLumiaPassportLinkedProfiles() {
|
|
|
8490
8492
|
// package.json
|
|
8491
8493
|
var package_default = {
|
|
8492
8494
|
name: "@lumiapassport/ui-kit",
|
|
8493
|
-
version: "1.5.
|
|
8495
|
+
version: "1.5.3",
|
|
8494
8496
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
8495
8497
|
type: "module",
|
|
8496
8498
|
main: "./dist/index.cjs",
|