remove redundant state. Revert error message

pull/5367/head
Joseph Izang 3 weeks ago committed by Aniket
parent 6b79df94c4
commit 342d1f6d49
  1. 2
      libs/remix-lib/src/execution/txRunnerWeb3.ts
  2. 1
      libs/remix-ui/run-tab/src/lib/run-tab.tsx

@ -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"

@ -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'

Loading…
Cancel
Save