Merge pull request #1355 from ethereum/yann300-patch-31

fix plugin call 'setEnvironmentMode'
pull/1359/head
David Disu 3 years ago committed by GitHub
commit b04203ec43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide/src/app/tabs/hardhat-provider.js

@ -65,7 +65,7 @@ export default class HardhatProvider extends Plugin {
if (error) {
this.blocked = true
modalDialogCustom.alert('Hardhat Provider', `Error while connecting to the hardhat provider: ${error.message}`)
await this.call('udapp', 'setEnvironmentMode', 'vm')
await this.call('udapp', 'setEnvironmentMode', { context: 'vm', fork: 'berlin' })
this.provider = null
setTimeout(_ => { this.blocked = false }, 1000) // we wait 1 second for letting remix to switch to vm
return reject(error)

Loading…
Cancel
Save