do not add default provider if it's trust wallet

pull/3454/head
yann300 2 years ago
parent 2180af56e6
commit 4910b1f873
  1. 3
      apps/remix-ide/src/app/udapp/run-tab.js

@ -132,7 +132,8 @@ export class RunTab extends ViewPlugin {
}
// basic injected
if (window && window.ethereum) {
// if it's the trust wallet provider, we have a specific provider for that, see below
if (window && window.ethereum && !window.ethereum.selectedProvider?.isTrustWallet) {
const displayNameInjected = `Injected Provider${(window && window.ethereum && !(window.ethereum.providers && !window.ethereum.selectedProvider)) ?
window.ethereum.isCoinbaseWallet || window.ethereum.selectedProvider?.isCoinbaseWallet ? ' - Coinbase' :
window.ethereum.isBraveWallet || window.ethereum.selectedProvider?.isBraveWallet ? ' - Brave' :

Loading…
Cancel
Save