You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/no-modal/src/connectors/metamask-connector/metamaskConnector.ts
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -79,10 +79,14 @@ class MetaMaskConnector extends BaseEvmConnector<void> {
79
79
iconUrl,
80
80
};
81
81
82
-
// Initialize the MetaMask SDK
82
+
// initialize the MetaMask SDK
83
83
constmetamaskOptions=deepmerge(this.metamaskOptions||{headless: true},{dappMetadata: appMetadata});// TODO: only use headless for Modal SDK
84
84
this.metamaskSDK=newMetaMaskSDK(metamaskOptions);
85
-
awaitthis.metamaskSDK.init();
85
+
// Note: in case there is an existing SDK instance in memory (window.mmsdk exists), it won't initialize the new SDK instance and return the existing instance instead of undefined
0 commit comments