Skip to content

Commit 3a8f6af

Browse files
add source web3auth for mm connector
1 parent 2887902 commit 3a8f6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/no-modal/src/connectors/metamask-connector/metamaskConnector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class MetaMaskConnector extends BaseEvmConnector<void> {
8181

8282
// initialize the MetaMask SDK
8383
const metamaskOptions = deepmerge(this.metamaskOptions || {}, { dappMetadata: appMetadata });
84-
this.metamaskSDK = new MetaMaskSDK(metamaskOptions);
84+
this.metamaskSDK = new MetaMaskSDK({ ...metamaskOptions, _source: "web3auth" });
8585
// Work around: in case there is an existing SDK instance in memory (window.mmsdk exists), it won't initialize the new SDK instance again
8686
// and return the existing instance instead of undefined (this is an assumption, not sure if it's a bug or feature of the MetaMask SDK)
8787
const initResult = await this.metamaskSDK.init();

0 commit comments

Comments
 (0)