Skip to content

Commit

Permalink
chore: bump mm sdk (#4251)
Browse files Browse the repository at this point in the history
* feat: update sdk

* chore: format

* chore: tweaks

* chore: changeset

---------

Co-authored-by: abretonc7s <arthur.breton@consensys.net>
Co-authored-by: abretonc7s <abretonc7s@users.noreply.github.com>
Co-authored-by: abretonc7s <107169956+abretonc7s@users.noreply.github.com>
  • Loading branch information
4 people committed Sep 9, 2024
1 parent 3b683b6 commit 5c89c68
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 41 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-eggs-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/connectors": patch
---

Bumped MM SDK.
2 changes: 1 addition & 1 deletion packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"dependencies": {
"@coinbase/wallet-sdk": "4.0.4",
"@metamask/sdk": "0.27.0",
"@metamask/sdk": "0.28.2",
"@safe-global/safe-apps-provider": "0.18.3",
"@safe-global/safe-apps-sdk": "9.1.0",
"@walletconnect/ethereum-provider": "2.15.3",
Expand Down
6 changes: 0 additions & 6 deletions packages/connectors/src/metaMask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ export function metaMask(parameters: MetaMaskParameters = {}) {
if (provider && !!(await this.getAccounts()).length) return
}

// Remove cached SDK properties.
if (typeof localStorage !== 'undefined') {
localStorage.removeItem('MMSDK_cached_address')
localStorage.removeItem('MMSDK_cached_chainId')
}

config.emitter.emit('disconnect')

// Manage EIP-1193 event listeners
Expand Down
60 changes: 26 additions & 34 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 5c89c68

Please sign in to comment.