From 7f215619ecfd1c9f1fcc08ac7ced8c383012ca92 Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Tue, 1 Oct 2024 12:49:20 +0500 Subject: [PATCH] feat(wallets): add coinshift to allowed domains --- libs/wallet/src/web3-react/connection/safe.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libs/wallet/src/web3-react/connection/safe.tsx b/libs/wallet/src/web3-react/connection/safe.tsx index 9126f9aed7..a9cff7e707 100644 --- a/libs/wallet/src/web3-react/connection/safe.tsx +++ b/libs/wallet/src/web3-react/connection/safe.tsx @@ -7,7 +7,19 @@ import { Web3ReactConnection } from '../types' const [web3GnosisSafe, web3GnosisSafeHooks] = initializeConnector( (actions) => - new AsyncConnector(() => import('@web3-react/gnosis-safe').then((m) => new m.GnosisSafe({ actions })), actions) + new AsyncConnector( + () => + import('@web3-react/gnosis-safe').then( + (m) => + new m.GnosisSafe({ + actions, + options: { + allowedDomains: [/^app\.safe\.global$/, /^(.+\.)?coinshift\.global$/, /^localhost:5173$/], + }, + }), + ), + actions, + ), ) export const gnosisSafeConnection: Web3ReactConnection = { connector: web3GnosisSafe,