diff --git a/packages/demo/package.json b/packages/demo/package.json index dc764b9ea..2ce6b0fd1 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -40,7 +40,7 @@ "@web3-onboard/frame": "^2.0.2", "@web3-onboard/frontier": "^2.0.3", "@web3-onboard/gas": "^2.1.7", - "@web3-onboard/gnosis": "^2.1.10", + "@web3-onboard/gnosis": "^2.2.1-alpha.1", "@web3-onboard/infinity-wallet": "^2.0.3", "@web3-onboard/injected-wallets": "^2.10.9", "@web3-onboard/keepkey": "^2.3.7", diff --git a/packages/gnosis/package.json b/packages/gnosis/package.json index 47579f54b..768481cd0 100644 --- a/packages/gnosis/package.json +++ b/packages/gnosis/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/gnosis", - "version": "2.2.0", + "version": "2.2.1-alpha.1", "description": "Safe module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", diff --git a/packages/gnosis/src/index.ts b/packages/gnosis/src/index.ts index 1500855ad..bc4d9707c 100644 --- a/packages/gnosis/src/index.ts +++ b/packages/gnosis/src/index.ts @@ -1,4 +1,4 @@ -import { WalletInit } from '@web3-onboard/common' +import type { WalletInit } from '@web3-onboard/common' type GnosisOptions = { whitelistedDomains: RegExp[] @@ -8,7 +8,8 @@ function gnosis(options?: GnosisOptions): WalletInit { const { whitelistedDomains = [ /^https:\/\/app\.safe\.global$/, - /^https:\/\/safe\.global$/ + /^https:\/\/safe\.global$/, + /^https:\/\/.*\.blockscout\.com$/ ] } = options || {} @@ -37,7 +38,7 @@ function gnosis(options?: GnosisOptions): WalletInit { SafeAppsSDK.default || SafeAppsSDK const opts = { - whitelistedDomains + allowedDomains: whitelistedDomains } const appsSdk = new SafeAppProviderConstructor(opts)