condition update

pull/3232/head
Aniket-Engg 2 years ago committed by Aniket
parent e43914e168
commit e29aa228d6
  1. 2
      apps/remix-ide/src/app/tabs/web3-provider.js

@ -31,7 +31,7 @@ export class Web3ProviderModule extends Plugin {
provider[provider.sendAsync ? 'sendAsync' : 'send'](payload, async (error, message) => {
if (error) {
// Handle 'The method "debug_traceTransaction" does not exist / is not available.' error
if(error.code && error.code === -32601) {
if(error.message && error.code && error.code === -32601) {
this.call('terminal', 'log', { value: error.message, type: 'error' } )
return reject(error.message)
} else {

Loading…
Cancel
Save