Unverified Commit b04203ec authored by David Disu's avatar David Disu Committed by GitHub

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

fix plugin call 'setEnvironmentMode'
parents 7bb6c30c 43c4e6b7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment