From c798f1e03ee2ba23784eba17b4707d8ccee235fc Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Fri, 30 Oct 2020 16:22:35 -0300 Subject: [PATCH] EWC/Volta - Disable not working wallets (#1549) * Disable wallets for Volta and EWC networks --- src/config/networks/energy_web_chain.ts | 20 ++++++++++++++++++-- src/config/networks/volta.ts | 20 ++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/config/networks/energy_web_chain.ts b/src/config/networks/energy_web_chain.ts index ee705489..f5c5521d 100644 --- a/src/config/networks/energy_web_chain.ts +++ b/src/config/networks/energy_web_chain.ts @@ -1,5 +1,5 @@ import EwcLogo from 'src/config/assets/token_ewc.svg' -import { EnvironmentSettings, ETHEREUM_NETWORK, NetworkConfig } from 'src/config/networks/network.d' +import { EnvironmentSettings, ETHEREUM_NETWORK, NetworkConfig, WALLETS } from 'src/config/networks/network.d' const baseConfig: EnvironmentSettings = { txServiceUrl: 'https://safe-transaction.ewc.gnosis.io/api/v1', @@ -41,7 +41,23 @@ const mainnet: NetworkConfig = { decimals: 18, logoUri: EwcLogo, }, - } + }, + disabledWallets:[ + WALLETS.TREZOR, + WALLETS.LEDGER, + WALLETS.COINBASE, + WALLETS.DAPPER, + WALLETS.FORTMATIC, + WALLETS.OPERA, + WALLETS.OPERA_TOUCH, + WALLETS.PORTIS, + WALLETS.TORUS, + WALLETS.TRUST, + WALLETS.UNILOGIN, + WALLETS.WALLET_CONNECT, + WALLETS.WALLET_LINK, + WALLETS.AUTHEREUM + ] } export default mainnet diff --git a/src/config/networks/volta.ts b/src/config/networks/volta.ts index d8930e6b..a3edfb22 100644 --- a/src/config/networks/volta.ts +++ b/src/config/networks/volta.ts @@ -1,5 +1,5 @@ import EwcLogo from 'src/config/assets/token_ewc.svg' -import { EnvironmentSettings, ETHEREUM_NETWORK, NetworkConfig } from 'src/config/networks/network.d' +import { EnvironmentSettings, ETHEREUM_NETWORK, WALLETS, NetworkConfig } from 'src/config/networks/network.d' const baseConfig: EnvironmentSettings = { txServiceUrl: 'https://safe-transaction.volta.gnosis.io/api/v1', @@ -41,7 +41,23 @@ const mainnet: NetworkConfig = { decimals: 18, logoUri: EwcLogo, }, - } + }, + disabledWallets:[ + WALLETS.TREZOR, + WALLETS.LEDGER, + WALLETS.COINBASE, + WALLETS.DAPPER, + WALLETS.FORTMATIC, + WALLETS.OPERA, + WALLETS.OPERA_TOUCH, + WALLETS.PORTIS, + WALLETS.TORUS, + WALLETS.TRUST, + WALLETS.UNILOGIN, + WALLETS.WALLET_CONNECT, + WALLETS.WALLET_LINK, + WALLETS.AUTHEREUM + ] } export default mainnet