Skip to content

Commit

Permalink
Update safes app provider and sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Aug 4, 2023
1 parent b60d029 commit 56901a6
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 425 deletions.
4 changes: 2 additions & 2 deletions connectors/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export default class Connector extends LockConnector {
return;
}

let SafeAppsSDK = await import('@gnosis.pm/safe-apps-sdk'!);
let SafeAppsSDK = await import('@safe-global/safe-apps-sdk'!);
if (SafeAppsSDK?.default) SafeAppsSDK = SafeAppsSDK.default;
if (SafeAppsSDK?.default) SafeAppsSDK = SafeAppsSDK.default;

const sdk = new SafeAppsSDK();
const safe = await sdk.safe.getInfo();

let SafeAppProvider = await import('@gnosis.pm/safe-apps-provider'!);
let SafeAppProvider = await import('@safe-global/safe-apps-provider'!);
if (SafeAppProvider?.default) SafeAppProvider = SafeAppProvider.default;
if (SafeAppProvider?.default) SafeAppProvider = SafeAppProvider.default;
if (SafeAppProvider?.SafeAppProvider) SafeAppProvider = SafeAppProvider.SafeAppProvider;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"browser": "dist/lock.min.js",
"dependencies": {
"@coinbase/wallet-sdk": "^3.4.0",
"@gnosis.pm/safe-apps-provider": "^0.14.0",
"@gnosis.pm/safe-apps-sdk": "^7.8.0",
"@portis/web3": "^4.0.6",
"@safe-global/safe-apps-provider": "^0.17.1",
"@safe-global/safe-apps-sdk": "^8.0.0",
"@toruslabs/torus-embed": "^1.12.1",
"@walletconnect/ethereum-provider": "^2.8.3",
"@walletconnect/modal": "^2.5.4",
Expand Down
Loading

0 comments on commit 56901a6

Please sign in to comment.