Skip to content

Commit

Permalink
Merge pull request #5236 from cowprotocol/release/2024-12-19
Browse files Browse the repository at this point in the history
fix: allow any safe-like apps
  • Loading branch information
shoom3301 authored Dec 19, 2024
2 parents 9a91bfc + 26e68ab commit b222d32
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions libs/wallet/src/web3-react/connection/safe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,7 @@ import { Web3ReactConnection } from '../types'

const [web3GnosisSafe, web3GnosisSafeHooks] = initializeConnector<AsyncConnector>(
(actions) =>
new AsyncConnector(
() =>
import('@web3-react/gnosis-safe').then(
(m) =>
new m.GnosisSafe({
actions,
options: {
allowedDomains: [/app\.safe\.global$/, /(.+\.)?coinshift\.global$/, /localhost:5173$/],
},
}),
),
actions,
),
new AsyncConnector(() => import('@web3-react/gnosis-safe').then((m) => new m.GnosisSafe({ actions })), actions),
)
export const gnosisSafeConnection: Web3ReactConnection = {
connector: web3GnosisSafe,
Expand Down

0 comments on commit b222d32

Please sign in to comment.