pull/5298/head
yann300 1 month ago committed by Aniket
parent eaf3c8ed25
commit 146e90c8bd
  1. 3
      libs/remix-lib/src/execution/txRunnerWeb3.ts

@ -160,9 +160,10 @@ export class TxRunnerWeb3 {
}, callback) }, callback)
}) })
.catch(err => { .catch(err => {
if (err && err.message.indexOf('Invalid JSON RPC response') !== -1) { if (err && err.message && err.message.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 may indicated that the transaction will fail.'))
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"
gasEstimationForceSend(err, () => { gasEstimationForceSend(err, () => {

Loading…
Cancel
Save