@metamask/connect-multichain 0.5.0 → 0.5.2
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/CHANGELOG.md +15 -1
- package/dist/browser/es/connect-multichain.mjs +48 -40
- package/dist/browser/es/connect-multichain.mjs.map +1 -1
- package/dist/browser/es/metafile-esm.json +1 -1
- package/dist/browser/iife/connect-multichain.js +1887 -91
- package/dist/browser/iife/connect-multichain.js.map +1 -1
- package/dist/browser/iife/metafile-iife.json +1 -1
- package/dist/browser/umd/connect-multichain.js +48 -40
- package/dist/browser/umd/connect-multichain.js.map +1 -1
- package/dist/browser/umd/metafile-cjs.json +1 -1
- package/dist/node/cjs/connect-multichain.js +41 -40
- package/dist/node/cjs/connect-multichain.js.map +1 -1
- package/dist/node/cjs/metafile-cjs.json +1 -1
- package/dist/node/es/connect-multichain.mjs +41 -40
- package/dist/node/es/connect-multichain.mjs.map +1 -1
- package/dist/node/es/metafile-esm.json +1 -1
- package/dist/react-native/es/connect-multichain.mjs +48 -40
- package/dist/react-native/es/connect-multichain.mjs.map +1 -1
- package/dist/react-native/es/metafile-esm.json +1 -1
- package/dist/src/index.browser.d.ts +1 -0
- package/dist/src/index.browser.d.ts.map +1 -1
- package/dist/src/index.browser.js +4 -2
- package/dist/src/index.browser.js.map +1 -1
- package/dist/src/index.native.d.ts +1 -0
- package/dist/src/index.native.d.ts.map +1 -1
- package/dist/src/index.native.js +4 -2
- package/dist/src/index.native.js.map +1 -1
- package/dist/src/index.node.js +2 -2
- package/dist/src/index.node.js.map +1 -1
- package/dist/src/multichain/index.d.ts +2 -2
- package/dist/src/multichain/index.d.ts.map +1 -1
- package/dist/src/multichain/index.js +82 -80
- package/dist/src/multichain/index.js.map +1 -1
- package/dist/src/multichain/transports/multichainApiClientWrapper/index.d.ts +3 -3
- package/dist/src/multichain/transports/multichainApiClientWrapper/index.d.ts.map +1 -1
- package/dist/src/multichain/transports/multichainApiClientWrapper/index.js +10 -10
- package/dist/src/multichain/transports/multichainApiClientWrapper/index.js.map +1 -1
- package/dist/src/polyfills/buffer-shim.d.ts +2 -0
- package/dist/src/polyfills/buffer-shim.d.ts.map +1 -0
- package/dist/src/polyfills/buffer-shim.js +22 -0
- package/dist/src/polyfills/buffer-shim.js.map +1 -0
- package/package.json +6 -2
|
@@ -1218,6 +1218,13 @@ __export(index_browser_exports, {
|
|
|
1218
1218
|
});
|
|
1219
1219
|
module.exports = __toCommonJS(index_browser_exports);
|
|
1220
1220
|
|
|
1221
|
+
// src/polyfills/buffer-shim.ts
|
|
1222
|
+
var import_buffer = require("buffer");
|
|
1223
|
+
var g = typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : {};
|
|
1224
|
+
if (!g.Buffer) {
|
|
1225
|
+
g.Buffer = import_buffer.Buffer;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1221
1228
|
// src/multichain/index.ts
|
|
1222
1229
|
var import_analytics4 = require("@metamask/analytics");
|
|
1223
1230
|
var import_mobile_wallet_protocol_core2 = require("@metamask/mobile-wallet-protocol-core");
|
|
@@ -2273,15 +2280,15 @@ var getUniqueId = () => {
|
|
|
2273
2280
|
};
|
|
2274
2281
|
var _MultichainApiClientWrapperTransport_instances, walletCreateSession_fn, walletGetSession_fn, walletRevokeSession_fn, walletInvokeMethod_fn;
|
|
2275
2282
|
var MultichainApiClientWrapperTransport = class {
|
|
2276
|
-
constructor(
|
|
2277
|
-
this.
|
|
2283
|
+
constructor(metamaskConnectMultichain) {
|
|
2284
|
+
this.metamaskConnectMultichain = metamaskConnectMultichain;
|
|
2278
2285
|
__privateAdd(this, _MultichainApiClientWrapperTransport_instances);
|
|
2279
2286
|
this.requestId = getUniqueId();
|
|
2280
2287
|
this.notificationCallbacks = /* @__PURE__ */ new Set();
|
|
2281
2288
|
}
|
|
2282
2289
|
isTransportDefined() {
|
|
2283
2290
|
try {
|
|
2284
|
-
return Boolean(this.
|
|
2291
|
+
return Boolean(this.metamaskConnectMultichain.transport);
|
|
2285
2292
|
} catch (error) {
|
|
2286
2293
|
return false;
|
|
2287
2294
|
}
|
|
@@ -2295,7 +2302,7 @@ var MultichainApiClientWrapperTransport = class {
|
|
|
2295
2302
|
});
|
|
2296
2303
|
}
|
|
2297
2304
|
setupNotifcationListener() {
|
|
2298
|
-
this.
|
|
2305
|
+
this.metamaskConnectMultichain.transport.onNotification(
|
|
2299
2306
|
this.notifyCallbacks.bind(this)
|
|
2300
2307
|
);
|
|
2301
2308
|
}
|
|
@@ -2342,7 +2349,7 @@ var MultichainApiClientWrapperTransport = class {
|
|
|
2342
2349
|
this.notificationCallbacks.delete(callback);
|
|
2343
2350
|
};
|
|
2344
2351
|
}
|
|
2345
|
-
return this.
|
|
2352
|
+
return this.metamaskConnectMultichain.transport.onNotification(callback);
|
|
2346
2353
|
}
|
|
2347
2354
|
};
|
|
2348
2355
|
_MultichainApiClientWrapperTransport_instances = new WeakSet();
|
|
@@ -2365,13 +2372,13 @@ walletCreateSession_fn = function(request) {
|
|
|
2365
2372
|
});
|
|
2366
2373
|
const accounts = [...new Set(scopeAccounts)];
|
|
2367
2374
|
console.log("\u{1F4DA} SDK connect");
|
|
2368
|
-
yield this.
|
|
2375
|
+
yield this.metamaskConnectMultichain.connect(
|
|
2369
2376
|
scopes,
|
|
2370
2377
|
accounts,
|
|
2371
2378
|
createSessionParams.sessionProperties
|
|
2372
2379
|
);
|
|
2373
2380
|
console.log("\u{1F4DA} SDK connected");
|
|
2374
|
-
return this.
|
|
2381
|
+
return this.metamaskConnectMultichain.transport.request({
|
|
2375
2382
|
method: "wallet_getSession"
|
|
2376
2383
|
});
|
|
2377
2384
|
});
|
|
@@ -2387,7 +2394,7 @@ walletGetSession_fn = function(request) {
|
|
|
2387
2394
|
}
|
|
2388
2395
|
};
|
|
2389
2396
|
}
|
|
2390
|
-
return this.
|
|
2397
|
+
return this.metamaskConnectMultichain.transport.request({
|
|
2391
2398
|
method: "wallet_getSession"
|
|
2392
2399
|
});
|
|
2393
2400
|
});
|
|
@@ -2398,7 +2405,7 @@ walletRevokeSession_fn = function(request) {
|
|
|
2398
2405
|
return { jsonrpc: "2.0", id: request.id, result: true };
|
|
2399
2406
|
}
|
|
2400
2407
|
try {
|
|
2401
|
-
this.
|
|
2408
|
+
this.metamaskConnectMultichain.disconnect();
|
|
2402
2409
|
return { jsonrpc: "2.0", id: request.id, result: true };
|
|
2403
2410
|
} catch (error) {
|
|
2404
2411
|
return { jsonrpc: "2.0", id: request.id, result: false };
|
|
@@ -2410,7 +2417,7 @@ walletInvokeMethod_fn = function(request) {
|
|
|
2410
2417
|
if (!this.isTransportDefined()) {
|
|
2411
2418
|
return { error: import_rpc_errors.providerErrors.unauthorized() };
|
|
2412
2419
|
}
|
|
2413
|
-
const result = this.
|
|
2420
|
+
const result = this.metamaskConnectMultichain.invokeMethod(
|
|
2414
2421
|
request.params
|
|
2415
2422
|
);
|
|
2416
2423
|
return {
|
|
@@ -2421,8 +2428,8 @@ walletInvokeMethod_fn = function(request) {
|
|
|
2421
2428
|
|
|
2422
2429
|
// src/multichain/index.ts
|
|
2423
2430
|
var logger2 = createLogger("metamask-sdk:core");
|
|
2424
|
-
var _a, _provider, _providerTransportWrapper, _transport2, _dappClient, _beforeUnloadListener, _listener, _sdkInfo,
|
|
2425
|
-
var
|
|
2431
|
+
var _a, _provider, _providerTransportWrapper, _transport2, _dappClient, _beforeUnloadListener, _listener, _sdkInfo, _MetaMaskConnectMultichain_instances, setupAnalytics_fn, onTransportNotification_fn, getStoredTransport_fn, setupTransport_fn, init_fn, createDappClient_fn, setupMWP_fn, onBeforeUnload_fn, createBeforeUnloadListener_fn, renderInstallModalAsync_fn, showInstallModal_fn, headlessConnect_fn, setupDefaultTransport_fn, deeplinkConnect_fn, handleConnection_fn;
|
|
2432
|
+
var _MetaMaskConnectMultichain = class _MetaMaskConnectMultichain extends MultichainCore {
|
|
2426
2433
|
constructor(options) {
|
|
2427
2434
|
var _a2, _b, _c, _d, _e, _f;
|
|
2428
2435
|
const withDappMetadata = setupDappMetadata(options);
|
|
@@ -2438,7 +2445,7 @@ var _MultichainSDK = class _MultichainSDK extends MultichainCore {
|
|
|
2438
2445
|
})
|
|
2439
2446
|
});
|
|
2440
2447
|
super(allOptions);
|
|
2441
|
-
__privateAdd(this,
|
|
2448
|
+
__privateAdd(this, _MetaMaskConnectMultichain_instances);
|
|
2442
2449
|
__privateAdd(this, _provider);
|
|
2443
2450
|
__privateAdd(this, _providerTransportWrapper);
|
|
2444
2451
|
__privateAdd(this, _transport2);
|
|
@@ -2485,7 +2492,7 @@ var _MultichainSDK = class _MultichainSDK extends MultichainCore {
|
|
|
2485
2492
|
static create(options) {
|
|
2486
2493
|
return __async(this, null, function* () {
|
|
2487
2494
|
var _a2;
|
|
2488
|
-
const instance = new
|
|
2495
|
+
const instance = new _MetaMaskConnectMultichain(options);
|
|
2489
2496
|
const isEnabled2 = yield isEnabled(
|
|
2490
2497
|
"metamask-sdk:core",
|
|
2491
2498
|
instance.options.storage
|
|
@@ -2493,7 +2500,7 @@ var _MultichainSDK = class _MultichainSDK extends MultichainCore {
|
|
|
2493
2500
|
if (isEnabled2) {
|
|
2494
2501
|
enableDebug("metamask-sdk:core");
|
|
2495
2502
|
}
|
|
2496
|
-
yield __privateMethod(_a2 = instance,
|
|
2503
|
+
yield __privateMethod(_a2 = instance, _MetaMaskConnectMultichain_instances, init_fn).call(_a2);
|
|
2497
2504
|
return instance;
|
|
2498
2505
|
});
|
|
2499
2506
|
}
|
|
@@ -2532,8 +2539,9 @@ var _MultichainSDK = class _MultichainSDK extends MultichainCore {
|
|
|
2532
2539
|
} catch (error) {
|
|
2533
2540
|
logger2("Error tracking connection_initiated event", error);
|
|
2534
2541
|
}
|
|
2542
|
+
const nonEmptySessionProperites = Object.keys(sessionProperties != null ? sessionProperties : {}).length > 0 ? sessionProperties : void 0;
|
|
2535
2543
|
if (((_a2 = __privateGet(this, _transport2)) == null ? void 0 : _a2.isConnected()) && !secure) {
|
|
2536
|
-
return __privateMethod(this,
|
|
2544
|
+
return __privateMethod(this, _MetaMaskConnectMultichain_instances, handleConnection_fn).call(this, __privateGet(this, _transport2).connect({ scopes, caipAccountIds, sessionProperties: nonEmptySessionProperites, forceRequest }).then(() => __async(this, null, function* () {
|
|
2537
2545
|
if (__privateGet(this, _transport2) instanceof MWPTransport) {
|
|
2538
2546
|
return this.storage.setTransport("mwp" /* MWP */);
|
|
2539
2547
|
}
|
|
@@ -2541,19 +2549,19 @@ var _MultichainSDK = class _MultichainSDK extends MultichainCore {
|
|
|
2541
2549
|
})), scopes, transportType);
|
|
2542
2550
|
}
|
|
2543
2551
|
if (platformType === "in-app-browser" /* MetaMaskMobileWebview */) {
|
|
2544
|
-
const defaultTransport = yield __privateMethod(this,
|
|
2545
|
-
return __privateMethod(this,
|
|
2552
|
+
const defaultTransport = yield __privateMethod(this, _MetaMaskConnectMultichain_instances, setupDefaultTransport_fn).call(this);
|
|
2553
|
+
return __privateMethod(this, _MetaMaskConnectMultichain_instances, handleConnection_fn).call(this, defaultTransport.connect({ scopes, caipAccountIds, sessionProperties: nonEmptySessionProperites, forceRequest }), scopes, transportType);
|
|
2546
2554
|
}
|
|
2547
2555
|
if (isWeb && hasExtensionInstalled && preferExtension) {
|
|
2548
|
-
const defaultTransport = yield __privateMethod(this,
|
|
2549
|
-
return __privateMethod(this,
|
|
2556
|
+
const defaultTransport = yield __privateMethod(this, _MetaMaskConnectMultichain_instances, setupDefaultTransport_fn).call(this);
|
|
2557
|
+
return __privateMethod(this, _MetaMaskConnectMultichain_instances, handleConnection_fn).call(this, defaultTransport.connect({ scopes, caipAccountIds, sessionProperties: nonEmptySessionProperites, forceRequest }), scopes, transportType);
|
|
2550
2558
|
}
|
|
2551
|
-
yield __privateMethod(this,
|
|
2559
|
+
yield __privateMethod(this, _MetaMaskConnectMultichain_instances, setupMWP_fn).call(this);
|
|
2552
2560
|
const shouldShowInstallModal = hasExtensionInstalled ? showInstallModal : !preferExtension || showInstallModal;
|
|
2553
2561
|
if (secure && !shouldShowInstallModal) {
|
|
2554
|
-
return __privateMethod(this,
|
|
2562
|
+
return __privateMethod(this, _MetaMaskConnectMultichain_instances, handleConnection_fn).call(this, __privateMethod(this, _MetaMaskConnectMultichain_instances, deeplinkConnect_fn).call(this, scopes, caipAccountIds, nonEmptySessionProperites), scopes, transportType);
|
|
2555
2563
|
}
|
|
2556
|
-
return __privateMethod(this,
|
|
2564
|
+
return __privateMethod(this, _MetaMaskConnectMultichain_instances, handleConnection_fn).call(this, __privateMethod(this, _MetaMaskConnectMultichain_instances, showInstallModal_fn).call(this, shouldShowInstallModal, scopes, caipAccountIds, nonEmptySessionProperites), scopes, transportType);
|
|
2557
2565
|
});
|
|
2558
2566
|
}
|
|
2559
2567
|
emit(event, args) {
|
|
@@ -2613,7 +2621,7 @@ _dappClient = new WeakMap();
|
|
|
2613
2621
|
_beforeUnloadListener = new WeakMap();
|
|
2614
2622
|
_listener = new WeakMap();
|
|
2615
2623
|
_sdkInfo = new WeakMap();
|
|
2616
|
-
|
|
2624
|
+
_MetaMaskConnectMultichain_instances = new WeakSet();
|
|
2617
2625
|
setupAnalytics_fn = function() {
|
|
2618
2626
|
return __async(this, null, function* () {
|
|
2619
2627
|
var _a2;
|
|
@@ -2656,19 +2664,19 @@ getStoredTransport_fn = function() {
|
|
|
2656
2664
|
__privateSet(this, _transport2, apiTransport);
|
|
2657
2665
|
__privateGet(this, _providerTransportWrapper).setupNotifcationListener();
|
|
2658
2666
|
__privateSet(this, _listener, apiTransport.onNotification(
|
|
2659
|
-
__privateMethod(this,
|
|
2667
|
+
__privateMethod(this, _MetaMaskConnectMultichain_instances, onTransportNotification_fn).bind(this)
|
|
2660
2668
|
));
|
|
2661
2669
|
return apiTransport;
|
|
2662
2670
|
}
|
|
2663
2671
|
} else if (transportType === "mwp" /* MWP */) {
|
|
2664
2672
|
const { adapter: kvstore } = this.options.storage;
|
|
2665
|
-
const dappClient = yield __privateMethod(this,
|
|
2673
|
+
const dappClient = yield __privateMethod(this, _MetaMaskConnectMultichain_instances, createDappClient_fn).call(this);
|
|
2666
2674
|
const apiTransport = new MWPTransport(dappClient, kvstore);
|
|
2667
2675
|
__privateSet(this, _dappClient, dappClient);
|
|
2668
2676
|
__privateSet(this, _transport2, apiTransport);
|
|
2669
2677
|
__privateGet(this, _providerTransportWrapper).setupNotifcationListener();
|
|
2670
2678
|
__privateSet(this, _listener, apiTransport.onNotification(
|
|
2671
|
-
__privateMethod(this,
|
|
2679
|
+
__privateMethod(this, _MetaMaskConnectMultichain_instances, onTransportNotification_fn).bind(this)
|
|
2672
2680
|
));
|
|
2673
2681
|
return apiTransport;
|
|
2674
2682
|
}
|
|
@@ -2679,7 +2687,7 @@ getStoredTransport_fn = function() {
|
|
|
2679
2687
|
};
|
|
2680
2688
|
setupTransport_fn = function() {
|
|
2681
2689
|
return __async(this, null, function* () {
|
|
2682
|
-
const transport = yield __privateMethod(this,
|
|
2690
|
+
const transport = yield __privateMethod(this, _MetaMaskConnectMultichain_instances, getStoredTransport_fn).call(this);
|
|
2683
2691
|
if (transport) {
|
|
2684
2692
|
if (!this.transport.isConnected()) {
|
|
2685
2693
|
this.status = "connecting";
|
|
@@ -2703,8 +2711,8 @@ init_fn = function() {
|
|
|
2703
2711
|
if (typeof window !== "undefined" && ((_a2 = window.mmsdk) == null ? void 0 : _a2.isInitialized)) {
|
|
2704
2712
|
logger2("MetaMaskSDK: init already initialized");
|
|
2705
2713
|
} else {
|
|
2706
|
-
yield __privateMethod(this,
|
|
2707
|
-
yield __privateMethod(this,
|
|
2714
|
+
yield __privateMethod(this, _MetaMaskConnectMultichain_instances, setupAnalytics_fn).call(this);
|
|
2715
|
+
yield __privateMethod(this, _MetaMaskConnectMultichain_instances, setupTransport_fn).call(this);
|
|
2708
2716
|
try {
|
|
2709
2717
|
const baseProps = yield getBaseAnalyticsProperties(
|
|
2710
2718
|
this.options,
|
|
@@ -2748,13 +2756,13 @@ setupMWP_fn = function() {
|
|
|
2748
2756
|
return;
|
|
2749
2757
|
}
|
|
2750
2758
|
const { adapter: kvstore } = this.options.storage;
|
|
2751
|
-
const dappClient = yield __privateMethod(this,
|
|
2759
|
+
const dappClient = yield __privateMethod(this, _MetaMaskConnectMultichain_instances, createDappClient_fn).call(this);
|
|
2752
2760
|
__privateSet(this, _dappClient, dappClient);
|
|
2753
2761
|
const apiTransport = new MWPTransport(dappClient, kvstore);
|
|
2754
2762
|
__privateSet(this, _transport2, apiTransport);
|
|
2755
2763
|
__privateGet(this, _providerTransportWrapper).setupNotifcationListener();
|
|
2756
2764
|
__privateSet(this, _listener, this.transport.onNotification(
|
|
2757
|
-
__privateMethod(this,
|
|
2765
|
+
__privateMethod(this, _MetaMaskConnectMultichain_instances, onTransportNotification_fn).bind(this)
|
|
2758
2766
|
));
|
|
2759
2767
|
yield this.storage.setTransport("mwp" /* MWP */);
|
|
2760
2768
|
});
|
|
@@ -2769,13 +2777,13 @@ onBeforeUnload_fn = function() {
|
|
|
2769
2777
|
};
|
|
2770
2778
|
createBeforeUnloadListener_fn = function() {
|
|
2771
2779
|
if (typeof window !== "undefined" && typeof window.addEventListener !== "undefined") {
|
|
2772
|
-
window.addEventListener("beforeunload", __privateMethod(this,
|
|
2780
|
+
window.addEventListener("beforeunload", __privateMethod(this, _MetaMaskConnectMultichain_instances, onBeforeUnload_fn).bind(this));
|
|
2773
2781
|
}
|
|
2774
2782
|
return () => {
|
|
2775
2783
|
if (typeof window !== "undefined" && typeof window.removeEventListener !== "undefined") {
|
|
2776
2784
|
window.removeEventListener(
|
|
2777
2785
|
"beforeunload",
|
|
2778
|
-
__privateMethod(this,
|
|
2786
|
+
__privateMethod(this, _MetaMaskConnectMultichain_instances, onBeforeUnload_fn).bind(this)
|
|
2779
2787
|
);
|
|
2780
2788
|
}
|
|
2781
2789
|
};
|
|
@@ -2851,11 +2859,11 @@ renderInstallModalAsync_fn = function(desktopPreferred, scopes, caipAccountIds,
|
|
|
2851
2859
|
showInstallModal_fn = function(desktopPreferred, scopes, caipAccountIds, sessionProperties) {
|
|
2852
2860
|
return __async(this, null, function* () {
|
|
2853
2861
|
var _a2;
|
|
2854
|
-
(_a2 = __privateGet(this, _beforeUnloadListener)) != null ? _a2 : __privateSet(this, _beforeUnloadListener, __privateMethod(this,
|
|
2862
|
+
(_a2 = __privateGet(this, _beforeUnloadListener)) != null ? _a2 : __privateSet(this, _beforeUnloadListener, __privateMethod(this, _MetaMaskConnectMultichain_instances, createBeforeUnloadListener_fn).call(this));
|
|
2855
2863
|
if (this.options.ui.headless) {
|
|
2856
|
-
yield __privateMethod(this,
|
|
2864
|
+
yield __privateMethod(this, _MetaMaskConnectMultichain_instances, headlessConnect_fn).call(this, scopes, caipAccountIds, sessionProperties);
|
|
2857
2865
|
} else {
|
|
2858
|
-
yield __privateMethod(this,
|
|
2866
|
+
yield __privateMethod(this, _MetaMaskConnectMultichain_instances, renderInstallModalAsync_fn).call(this, desktopPreferred, scopes, caipAccountIds, sessionProperties);
|
|
2859
2867
|
}
|
|
2860
2868
|
});
|
|
2861
2869
|
};
|
|
@@ -2907,7 +2915,7 @@ setupDefaultTransport_fn = function() {
|
|
|
2907
2915
|
yield this.storage.setTransport("browser" /* Browser */);
|
|
2908
2916
|
const transport = new DefaultTransport();
|
|
2909
2917
|
__privateSet(this, _listener, transport.onNotification(
|
|
2910
|
-
__privateMethod(this,
|
|
2918
|
+
__privateMethod(this, _MetaMaskConnectMultichain_instances, onTransportNotification_fn).bind(this)
|
|
2911
2919
|
));
|
|
2912
2920
|
__privateSet(this, _transport2, transport);
|
|
2913
2921
|
__privateGet(this, _providerTransportWrapper).setupNotifcationListener();
|
|
@@ -3020,7 +3028,7 @@ handleConnection_fn = function(promise, scopes, transportType) {
|
|
|
3020
3028
|
}));
|
|
3021
3029
|
});
|
|
3022
3030
|
};
|
|
3023
|
-
var
|
|
3031
|
+
var MetaMaskConnectMultichain = _MetaMaskConnectMultichain;
|
|
3024
3032
|
|
|
3025
3033
|
// src/store/index.ts
|
|
3026
3034
|
var uuid = __toESM(require("uuid"));
|
|
@@ -3384,7 +3392,7 @@ var createMultichainClient = (options) => __async(null, null, function* () {
|
|
|
3384
3392
|
storage = options.storage;
|
|
3385
3393
|
}
|
|
3386
3394
|
const factory = new ModalFactory(uiModules);
|
|
3387
|
-
return
|
|
3395
|
+
return MetaMaskConnectMultichain.create(__spreadProps(__spreadValues({}, options), {
|
|
3388
3396
|
storage,
|
|
3389
3397
|
ui: __spreadProps(__spreadValues({}, options.ui), {
|
|
3390
3398
|
factory
|