Skip to content

Commit

Permalink
fix: wagmi dependencies. coinbase connector duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Dec 21, 2023
1 parent 51c6040 commit c213364
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 220 deletions.
252 changes: 39 additions & 213 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
"@web3modal/polyfills": "3.6.0-alpha.0",
"@web3modal/scaffold": "3.6.0-alpha.0",
"@web3modal/scaffold-react": "3.6.0-alpha.0",
"@web3modal/scaffold-utils": "3.6.0-alpha.0",
"@web3modal/scaffold-vue": "3.6.0-alpha.0",
"@web3modal/wallet": "3.6.0-alpha.0",
"@web3modal/polyfills": "3.6.0-8b4be6c6",
"@web3modal/scaffold": "3.6.0-8b4be6c6",
"@web3modal/scaffold-react": "3.6.0-8b4be6c6",
"@web3modal/scaffold-utils": "3.6.0-8b4be6c6",
"@web3modal/scaffold-vue": "3.6.0-8b4be6c6",
"@web3modal/wallet": "3.6.0-8b4be6c6",
"@tanstack/react-query": "5.14.1",
"@wagmi/connectors": "4.0.0-beta.9",
"@wagmi/core": "2.0.0-beta.9",
Expand Down
7 changes: 6 additions & 1 deletion packages/wagmi/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,13 @@ export class Web3Modal extends Web3ModalScaffold {

private syncConnectors(wagmiConfig: Web3ModalClientOptions['wagmiConfig']) {
const w3mConnectors: Connector[] = []

const coinbaseConnector = wagmiConfig.connectors.find(c => c.id === 'com.coinbase.wallet')

wagmiConfig.connectors.forEach(({ id, name, type, icon }) => {
if (![ConstantsUtil.EMAIL_CONNECTOR_ID].includes(id)) {
const shouldSkip =
(coinbaseConnector && id === 'coinbaseWalletSDK') || ConstantsUtil.EMAIL_CONNECTOR_ID === id
if (!shouldSkip) {
w3mConnectors.push({
id,
explorerId: PresetsUtil.ConnectorExplorerIds[id],
Expand Down

0 comments on commit c213364

Please sign in to comment.