From 342d1f6d49cb6b73884a2bdc612d488f8000e7e6 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 1 Nov 2024 14:45:30 +0100 Subject: [PATCH] remove redundant state. Revert error message --- libs/remix-lib/src/execution/txRunnerWeb3.ts | 2 +- libs/remix-ui/run-tab/src/lib/run-tab.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/remix-lib/src/execution/txRunnerWeb3.ts b/libs/remix-lib/src/execution/txRunnerWeb3.ts index 6a7126dc5c..b2c46feff4 100644 --- a/libs/remix-lib/src/execution/txRunnerWeb3.ts +++ b/libs/remix-lib/src/execution/txRunnerWeb3.ts @@ -166,7 +166,7 @@ export class TxRunnerWeb3 { .catch(err => { if (err && err.error && err.error.indexOf('Invalid JSON RPC response') !== -1) { // // @todo(#378) this should be removed when https://github.com/WalletConnect/walletconnect-monorepo/issues/334 is fixed - callback(new Error('Gas estimation failed because of an unknown internal error. This indicates that the transaction could fail.')) + callback(new Error('Gas estimation failed because of an unknown internal error. This may indicated that the transaction will fail.')) return } err = network.name === 'VM' ? null : err // just send the tx if "VM" diff --git a/libs/remix-ui/run-tab/src/lib/run-tab.tsx b/libs/remix-ui/run-tab/src/lib/run-tab.tsx index f8d5d122bf..2e87d1cbf6 100644 --- a/libs/remix-ui/run-tab/src/lib/run-tab.tsx +++ b/libs/remix-ui/run-tab/src/lib/run-tab.tsx @@ -86,7 +86,6 @@ export function RunTabUI(props: RunTabProps) { const REACT_API = { runTab } const currentfile = plugin.config.get('currentFile') const [solcVersion, setSolcVersion] = useState<{version: string, canReceive: boolean}>({ version: '', canReceive: true }) - const [chainEvmCompat, setChainEvmCompat] = useState() const getVersion = () => { let version = '0.8.25'