Skip to content

Commit

Permalink
chore: update @safe-global/safe-apps-sdk (#4146)
Browse files Browse the repository at this point in the history
chore: update safe
  • Loading branch information
jxom authored Jul 17, 2024
1 parent 6148383 commit cc996e0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 74 deletions.
8 changes: 8 additions & 0 deletions .changeset/cold-roses-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@wagmi/connectors": patch
"@wagmi/core": patch
"wagmi": patch
"@wagmi/vue": patch
---

Updated `@safe-global/safe-apps-sdk` + `@safe-global/safe-apps-provider` dependencies.
4 changes: 2 additions & 2 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"dependencies": {
"@coinbase/wallet-sdk": "4.0.4",
"@metamask/sdk": "0.26.4",
"@safe-global/safe-apps-provider": "0.18.1",
"@safe-global/safe-apps-sdk": "8.1.0",
"@safe-global/safe-apps-provider": "0.18.3",
"@safe-global/safe-apps-sdk": "9.1.0",
"@walletconnect/ethereum-provider": "2.13.0",
"@walletconnect/modal": "2.6.2",
"cbw-sdk": "npm:@coinbase/wallet-sdk@3.9.3"
Expand Down
11 changes: 1 addition & 10 deletions packages/connectors/src/safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,7 @@ export function safe(parameters: SafeParameters = {}) {
if (!isIframe) return

if (!provider_) {
const { default: SafeAppsSDK } = await import(
'@safe-global/safe-apps-sdk'
)
let SDK: typeof SafeAppsSDK.default
if (
typeof SafeAppsSDK !== 'function' &&
typeof SafeAppsSDK.default === 'function'
)
SDK = SafeAppsSDK.default
else SDK = SafeAppsSDK as unknown as typeof SafeAppsSDK.default
const { default: SDK } = await import('@safe-global/safe-apps-sdk')
const sdk = new SDK(parameters)

// `getInfo` hangs when not used in Safe App iFrame
Expand Down
74 changes: 12 additions & 62 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 cc996e0

Please sign in to comment.