pull/1344/head
yann300 3 years ago committed by joseph izang
parent 175e40a79f
commit 2adab6474d
  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