pull/1315/head
yann300 3 years ago committed by Aniket
parent 07e7d47899
commit 45db3361c6
  1. 3
      apps/remix-ide/src/app/tabs/hardhat-provider.js

@ -1,7 +1,6 @@
import * as packageJson from '../../../../../package.json'
import { Plugin } from '@remixproject/engine'
import Web3 from 'web3'
import toaster from '../ui/tooltip'
const yo = require('yo-yo')
const modalDialogCustom = require('../ui/modal-dialog-custom')
@ -70,7 +69,7 @@ export default class HardhatProvider extends Plugin {
modalDialogCustom.alert('Hardhat', `Error while connecting to the hardhat provider: ${error.message}`)
await this.call('udapp', 'setEnvironmentMode', 'vm')
this.provider = null
setTimeout(_ => this.blocked = false, 1000)
setTimeout(_ => { this.blocked = false }, 1000)
return reject(error)
}
resolve(message)

Loading…
Cancel
Save