diff --git a/src/custom/api/gnosisProtocol/errors/OperatorError.ts b/src/custom/api/gnosisProtocol/errors/OperatorError.ts index 68dee5e74..cb0525126 100644 --- a/src/custom/api/gnosisProtocol/errors/OperatorError.ts +++ b/src/custom/api/gnosisProtocol/errors/OperatorError.ts @@ -49,7 +49,7 @@ export enum ApiErrorCodeDetails { UnsupportedToken = 'One of the tokens you are trading is unsupported. Please read the FAQ for more info.', AmountIsZero = 'Amount is zero', SellAmountDoesNotCoverFee = 'Sell amount does not sufficiently cover the current fee', - TransferEthToContract = 'Sending Ether to smart contract wallets is not currently supported', + TransferEthToContract = 'Sending the native currency to smart contract wallets is not currently supported', UNHANDLED_GET_ERROR = 'Order fetch failed. This may be due to a server or network connectivity issue. Please try again later.', UNHANDLED_CREATE_ERROR = 'The order was not accepted by the network', UNHANDLED_DELETE_ERROR = 'The order cancellation was not accepted by the network', diff --git a/src/custom/hooks/useWalletInfo.ts b/src/custom/hooks/useWalletInfo.ts index 7285af438..4b170f62c 100644 --- a/src/custom/hooks/useWalletInfo.ts +++ b/src/custom/hooks/useWalletInfo.ts @@ -10,7 +10,6 @@ import { getProviderType, WalletProvider } from 'connectors' import { useActiveWeb3Instance } from 'hooks/index' import { getSafeInfo } from 'api/gnosisSafe' import { SafeInfoResponse } from '@gnosis.pm/safe-service-client' -import { ChainId } from '../state/lists/actions' const GNOSIS_SAFE_WALLET_NAMES = ['Gnosis Safe Multisig', 'Gnosis Safe'] @@ -46,19 +45,13 @@ function checkIsSupportedWallet(params: { chainId?: number gnosisSafeInfo?: SafeInfoResponse }): boolean { - const { walletName, chainId, gnosisSafeInfo } = params + const { walletName } = params if (walletName && UNSUPPORTED_WC_WALLETS.has(walletName)) { // Unsupported wallet return false } - if (chainId === ChainId.XDAI && !!gnosisSafeInfo) { - // Gnosis Safe is unsupported in xDAI - // See https://github.com/gnosis/safe-react/issues/2999 and https://github.com/gnosis/safe-react/issues/3002 - return false - } - return true }