diff --git a/apps/evm/src/lib/wagmi/config.ts b/apps/evm/src/lib/wagmi/config.ts index 6034013e3..3815b1f1f 100644 --- a/apps/evm/src/lib/wagmi/config.ts +++ b/apps/evm/src/lib/wagmi/config.ts @@ -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 ? [ @@ -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({