Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: update to sdk 0.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
abretonc7s committed Jul 21, 2023
1 parent e477d5e commit eb7994b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@coinbase/wallet-sdk": "^3.6.6",
"@ledgerhq/connect-kit-loader": "^1.1.0",
"@metamask/sdk": "^0.5.4",
"@metamask/sdk": "^0.5.5",
"@safe-global/safe-apps-provider": "^0.17.1",
"@safe-global/safe-apps-sdk": "^8.0.0",
"@walletconnect/ethereum-provider": "2.9.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/connectors/src/metaMaskSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export class MetaMaskSDKConnector extends InjectedConnector {
}

let sdk
const { debug } = options_

if (!options_?.sdk) {
sdk = new MetaMaskSDK(options_.sdkOptions)
Expand All @@ -54,7 +53,6 @@ export class MetaMaskSDKConnector extends InjectedConnector {

super({ chains, options })

this.#debug = debug ?? false
this.#sdk = sdk
this.#provider = sdkProvider
}
Expand Down Expand Up @@ -92,6 +90,7 @@ export class MetaMaskSDKConnector extends InjectedConnector {
}

async disconnect() {
console.warn('WAGMI DISCONNECT??')
this.#sdk.terminate()
super.disconnect()
}
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb7994b

Please sign in to comment.