Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
b04203ec
Unverified
Commit
b04203ec
authored
Jul 06, 2021
by
David Disu
Committed by
GitHub
Jul 06, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1355 from ethereum/yann300-patch-31
fix plugin call 'setEnvironmentMode'
parents
7bb6c30c
43c4e6b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
hardhat-provider.js
apps/remix-ide/src/app/tabs/hardhat-provider.js
+1
-1
No files found.
apps/remix-ide/src/app/tabs/hardhat-provider.js
View file @
b04203ec
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment