Skip to content

Commit

Permalink
Merge pull request #70 from XDeFi-tech/feat/remove-web3uath-connector
Browse files Browse the repository at this point in the history
feat: [XDEFI-3912] remove web3auth connector option
  • Loading branch information
Amurmurmur authored Aug 23, 2023
2 parents 8472606 + 74f80f5 commit 2c9d00f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"@types/react-dom": "^18.0.6",
"@walletconnect/ethereum-provider": "^2.9.1",
"@walletconnect/modal": "^2.6.0",
"@web3auth/base": "^6.1.7",
"@web3auth/modal": "^6.1.7",
"@xdefi/wallets-connector": "link:..",
"gh-pages": "^4.0.0",
"react": "^18.2.0",
Expand Down
8 changes: 0 additions & 8 deletions example/src/pages/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EthereumProvider } from '@walletconnect/ethereum-provider'
import CoinbaseWalletSDK from '@coinbase/wallet-sdk'
import Torus from '@toruslabs/torus-embed'
import { Web3Auth } from '@web3auth/modal'
import { IProviderOptions, injected } from '@xdefi/wallets-connector'

export const getProviderOptions = (): IProviderOptions => {
Expand All @@ -20,13 +19,6 @@ export const getProviderOptions = (): IProviderOptions => {
infuraId
}
},
web3auth: {
package: Web3Auth,
options: {
clientId:
'BDT32AJMVtrs4yu6EgghO5HilnZIhw-gYS67FDKe6fVMrkVRNwA4KtaLqvaF0t-j4US3UGCorGJnk-e_a77OhPE'
}
},
walletconnect: {
package: EthereumProvider,
options: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xdefi/wallets-connector",
"version": "2.0.2",
"version": "2.0.3",
"description": "Cross chain wallets connector with react hooks",
"author": "garageinc",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ export class ProviderController {
method: 'eth_chainId'
})

const chainUnformatted = CHAIN_DATA_LIST[Number(chainId)].network
const chainUnformatted =
CHAIN_DATA_LIST[Number(chainId)]?.network ?? 'unknown'
chain = convertToCommonChain(chainUnformatted)

ethAccounts = ethereumProvider.enable
Expand Down

0 comments on commit 2c9d00f

Please sign in to comment.