From 29e13241fef9d0ff0b48129db5318237d737885a Mon Sep 17 00:00:00 2001 From: Tatiana Date: Thu, 2 Nov 2023 14:46:15 +0200 Subject: [PATCH 1/2] use public url only if user doesnt have metamask installed --- ui/wallet/src/ProxeusEthereum/WalletInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/wallet/src/ProxeusEthereum/WalletInterface.js b/ui/wallet/src/ProxeusEthereum/WalletInterface.js index e55d0e398..795292e3b 100644 --- a/ui/wallet/src/ProxeusEthereum/WalletInterface.js +++ b/ui/wallet/src/ProxeusEthereum/WalletInterface.js @@ -18,7 +18,7 @@ class WalletInterface { // make sure we are using the web3 we want and not the one provided by metamask this.web3 = new Web3(Web3.givenProvider || 'ws://localhost:8545') - this.useProxeusWallet = (typeof window.ethereum !== 'undefined' && network != this.getNetworkNameById(window.ethereum.networkVersion)) || forceProxeusWallet || typeof window.ethereum === 'undefined' + this.useProxeusWallet = forceProxeusWallet || typeof window.ethereum === 'undefined' this.web3.eth.getTransactionReceiptMined = getTransactionReceiptMined this.serviceConfig = serviceConfig[network] From e16467695cb3f9f4856b12090c35677ee6eb518b Mon Sep 17 00:00:00 2001 From: Tatiana Date: Thu, 2 Nov 2023 14:46:51 +0200 Subject: [PATCH 2/2] use public url only if user doesnt have metamask installed --- ui/wallet/src/ProxeusEthereum/WalletInterface.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/wallet/src/ProxeusEthereum/WalletInterface.js b/ui/wallet/src/ProxeusEthereum/WalletInterface.js index a6668103e..a3270c89b 100644 --- a/ui/wallet/src/ProxeusEthereum/WalletInterface.js +++ b/ui/wallet/src/ProxeusEthereum/WalletInterface.js @@ -401,7 +401,6 @@ class WalletInterface { } } - async verifyHash (hash) { const result = await this.proxeusFS.fileVerify(hash)