Skip to content

Commit

Permalink
fix(bridge-ui): add injected provider to connectors (#16008)
Browse files Browse the repository at this point in the history
Co-authored-by: David <david@taiko.xyz>
  • Loading branch information
KorbinianK and davidtaikocha committed Feb 23, 2024
1 parent a9f60b8 commit 0496ff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/bridge-ui/src/libs/connect/web3modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const chainImages = getChainImages();
export const web3modal = createWeb3Modal({
wagmiConfig: config,
projectId,
featuredWalletIds: [],
excludeWalletIds: ['c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96'],
// chains,
chainImages,
themeVariables: {
Expand Down
4 changes: 2 additions & 2 deletions packages/bridge-ui/src/libs/wagmi/client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { walletConnect } from '@wagmi/connectors';
import { injected, walletConnect } from '@wagmi/connectors';
import { createConfig, getPublicClient, http, reconnect } from '@wagmi/core';

import { PUBLIC_WALLETCONNECT_PROJECT_ID } from '$env/static/public';
Expand All @@ -15,7 +15,7 @@ const transports = chains.reduce((acc, { id }) => ({ ...acc, [id]: http() }), {}
export const config = createConfig({
//@ts-ignore
chains: [...chains],
connectors: [walletConnect({ projectId })],
connectors: [walletConnect({ projectId, showQrModal: false }), injected()],
transports,
});

Expand Down

0 comments on commit 0496ff4

Please sign in to comment.