Skip to content

Commit

Permalink
fix(evm): disable binance and wallet-connect on development env (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao authored Dec 19, 2024
1 parent 10ce36b commit 08f39af
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions apps/evm/src/lib/wagmi/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ const prodChains = [bob, mainnet];
const allChains = [...testnetChains, ...prodChains];

const getConfig = ({ isProd, multiInjectedProviderDiscovery }: Config) => {
const isDev = process.env.NODE_ENV === 'development';

const coinbase = coinbaseWallet({
appName: 'BOB',
appLogoUrl: 'https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae53ef4b561482f1c49f_bob1.jpg'
});

const connectors = [
...(typeof window !== 'undefined' && window.ethereum !== undefined
? [
Expand All @@ -24,21 +31,23 @@ const getConfig = ({ isProd, multiInjectedProviderDiscovery }: Config) => {
})
]
: []),
walletConnect({
showQrModal: true,
projectId: 'd9a2f927549acc3da9e4893729772641',
metadata: {
name: 'BOB',
description: 'BOB is a hybrid L2 that combines the security of Bitcoin with the versatility of Ethereum',
url: 'https://www.app.gobob.xyz',
icons: ['https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae53ef4b561482f1c49f_bob1.jpg']
}
}),
coinbaseWallet({
appName: 'BOB',
appLogoUrl: 'https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae53ef4b561482f1c49f_bob1.jpg'
}),
binanceConnector()

...(isDev
? [coinbase]
: [
walletConnect({
showQrModal: true,
projectId: 'd9a2f927549acc3da9e4893729772641',
metadata: {
name: 'BOB',
description: 'BOB is a hybrid L2 that combines the security of Bitcoin with the versatility of Ethereum',
url: 'https://www.app.gobob.xyz',
icons: ['https://uploads-ssl.webflow.com/64e85c2f3609488b3ed725f4/64ecae53ef4b561482f1c49f_bob1.jpg']
}
}),
coinbase,
binanceConnector()
])
];

return createConfig({
Expand Down

0 comments on commit 08f39af

Please sign in to comment.