fix error message

pull/5367/head
Joseph Izang 3 weeks ago committed by Aniket
parent 287ace852f
commit 9e3329153f
  1. 2
      libs/remix-lib/src/execution/txRunnerWeb3.ts

@ -166,7 +166,7 @@ export class TxRunnerWeb3 {
.catch(err => { .catch(err => {
if (err && err.error && err.error.indexOf('Invalid JSON RPC response') !== -1) { 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 // // @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 may indicated that the transaction will fail.')) callback(new Error('Gas estimation failed because of an unknown internal error. This indicates that the transaction could fail.'))
return return
} }
err = network.name === 'VM' ? null : err // just send the tx if "VM" err = network.name === 'VM' ? null : err // just send the tx if "VM"

Loading…
Cancel
Save