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
2dbafd02
Commit
2dbafd02
authored
Aug 26, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove currentProviderName
parent
bf665c23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
execution-context.js
libs/remix-lib/src/execution/execution-context.js
+1
-5
No files found.
libs/remix-lib/src/execution/execution-context.js
View file @
2dbafd02
...
...
@@ -110,7 +110,6 @@ function ExecutionContext () {
let
executionContext
=
null
this
.
currentProviderName
=
null
this
.
blockGasLimitDefault
=
4300000
this
.
blockGasLimit
=
this
.
blockGasLimitDefault
this
.
customNetWorks
=
{}
...
...
@@ -175,7 +174,7 @@ function ExecutionContext () {
this
.
removeProvider
=
(
name
)
=>
{
if
(
name
&&
this
.
customNetWorks
[
name
])
{
if
(
this
.
currentProviderName
===
name
)
this
.
setContext
(
'vm'
,
null
)
if
(
executionContext
===
name
)
this
.
setContext
(
'vm'
,
null
)
delete
this
.
customNetWorks
[
name
]
this
.
event
.
trigger
(
'removeProvider'
,
[
name
])
}
...
...
@@ -211,7 +210,6 @@ function ExecutionContext () {
if
(
!
infoCb
)
infoCb
=
()
=>
{}
if
(
context
===
'vm'
)
{
executionContext
=
context
this
.
currentProviderName
=
context
vms
[
currentFork
].
stateManager
.
revert
(()
=>
{
vms
[
currentFork
].
stateManager
.
checkpoint
(()
=>
{})
})
...
...
@@ -226,7 +224,6 @@ function ExecutionContext () {
}
else
{
this
.
askPermission
()
executionContext
=
context
this
.
currentProviderName
=
context
web3
.
setProvider
(
injectedProvider
)
this
.
_updateBlockGasLimit
()
this
.
event
.
trigger
(
'contextChanged'
,
[
'injected'
])
...
...
@@ -286,7 +283,6 @@ function ExecutionContext () {
web3
.
eth
.
net
.
isListening
((
err
,
isConnected
)
=>
{
if
(
!
err
&&
isConnected
)
{
executionContext
=
context
this
.
currentProviderName
=
context
self
.
_updateBlockGasLimit
()
self
.
event
.
trigger
(
'contextChanged'
,
[
context
])
self
.
event
.
trigger
(
'web3EndpointChanged'
)
...
...
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