Skip to content

Commit

Permalink
feat: force sdk source to wagmi
Browse files Browse the repository at this point in the history
  • Loading branch information
abretonc7s committed Jul 24, 2023
1 parent 0982b66 commit c1dbce5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/connectors/src/metaMaskSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ export class MetaMaskSDKConnector extends InjectedConnector {

let sdk

if (!options_?.sdk) {
sdk = new MetaMaskSDK(options_.sdkOptions)
} else {
if (options_?.sdk) {
sdk = options_.sdk
} else {
// force source to 'wagmi' for analytics
options_.sdkOptions!._source = 'wagmi'
sdk = new MetaMaskSDK(options_.sdkOptions)
}

const sdkProvider = sdk.getProvider()
Expand Down

0 comments on commit c1dbce5

Please sign in to comment.