Skip to content

Commit

Permalink
feat(wallets): add coinshift to allowed domains
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Oct 1, 2024
1 parent 23070f8 commit 7f21561
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion libs/wallet/src/web3-react/connection/safe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ import { Web3ReactConnection } from '../types'

const [web3GnosisSafe, web3GnosisSafeHooks] = initializeConnector<AsyncConnector>(
(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,
Expand Down

0 comments on commit 7f21561

Please sign in to comment.