From bf8556dab5436661e77e9a58b319783508ac9561 Mon Sep 17 00:00:00 2001 From: Taylor Caldwell Date: Wed, 19 Oct 2022 14:32:49 -0700 Subject: [PATCH] Fix Injected Provider option --- libs/remix-ui/run-tab/src/lib/reducers/runTab.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/run-tab/src/lib/reducers/runTab.ts b/libs/remix-ui/run-tab/src/lib/reducers/runTab.ts index 1cf99a4b53..d887f37ce1 100644 --- a/libs/remix-ui/run-tab/src/lib/reducers/runTab.ts +++ b/libs/remix-ui/run-tab/src/lib/reducers/runTab.ts @@ -138,7 +138,11 @@ export const runTabInitialState: RunTabState = { dataId: 'settingsInjectedMode', title: 'Execution environment has been provided by Metamask or similar provider.', value: 'injected', - content: `Injected Provider${(window && window.ethereum && window.ethereum.isMetaMask) ? ' - Metamask' : ''}` + content: `${(window && window.ethereum && !(window.ethereum.providers && !window.ethereum.selectedProvider)) ? + window.ethereum.isCoinbaseWallet || window.ethereum.selectedProvider?.isCoinbaseWallet ? 'Coinbase Wallet' : + window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? 'Brave Wallet' : + window.ethereum.isMetaMask || window.ethereum.selectedProvider?.isMetaMask ? 'MetaMask' : + 'Injected Provider' : 'Injected Provider'}` }], isRequesting: false, isSuccessful: false,