diff --git a/src/logic/wallets/getWeb3.js b/src/logic/wallets/getWeb3.js index 8e5ea4bb..9efe1ea3 100644 --- a/src/logic/wallets/getWeb3.js +++ b/src/logic/wallets/getWeb3.js @@ -24,8 +24,16 @@ export const WALLET_PROVIDER = { SQUARELINK: 'SQUARELINK', WALLETCONNECT: 'WALLETCONNECT', OPERA: 'OPERA', + DAPPER: 'DAPPER', } +export const INJECTED_PROVIDERS = [ + WALLET_PROVIDER.SAFE, + WALLET_PROVIDER.METAMASK, + WALLET_PROVIDER.OPERA, + WALLET_PROVIDER.DAPPER, +] + export const ETHEREUM_NETWORK_IDS = { // $FlowFixMe 1: ETHEREUM_NETWORK.MAINNET, @@ -82,6 +90,9 @@ const getProviderName: Function = (web3Provider): string => { name = 'Wallet' } break + case 'DapperLegacyProvider': + name = WALLET_PROVIDER.DAPPER + break default: name = 'Wallet' } @@ -105,8 +116,6 @@ const getProviderName: Function = (web3Provider): string => { return name } -export const INJECTED_PROVIDERS = [WALLET_PROVIDER.SAFE, WALLET_PROVIDER.METAMASK, WALLET_PROVIDER.OPERA] - export const getAccountFrom: Function = async (web3Provider): Promise => { const accounts = await web3Provider.eth.getAccounts()