Skip to content

Commit 8be3a45

Browse files
authored
feat(wallets): add coinshift to allowed domains (#4931)
* feat(wallets): add coinshift to allowed domains * chore: fix regex
1 parent fa89358 commit 8be3a45

File tree

1 file changed

+13
-1
lines changed
  • libs/wallet/src/web3-react/connection

1 file changed

+13
-1
lines changed

libs/wallet/src/web3-react/connection/safe.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@ import { Web3ReactConnection } from '../types'
77

88
const [web3GnosisSafe, web3GnosisSafeHooks] = initializeConnector<AsyncConnector>(
99
(actions) =>
10-
new AsyncConnector(() => import('@web3-react/gnosis-safe').then((m) => new m.GnosisSafe({ actions })), actions)
10+
new AsyncConnector(
11+
() =>
12+
import('@web3-react/gnosis-safe').then(
13+
(m) =>
14+
new m.GnosisSafe({
15+
actions,
16+
options: {
17+
allowedDomains: [/app\.safe\.global$/, /(.+\.)?coinshift\.global$/, /localhost:5173$/],
18+
},
19+
}),
20+
),
21+
actions,
22+
),
1123
)
1224
export const gnosisSafeConnection: Web3ReactConnection = {
1325
connector: web3GnosisSafe,

0 commit comments

Comments
 (0)