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
a2f7af4f
Commit
a2f7af4f
authored
Jun 25, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't set a current fork if injected or web3 is used
parent
4a52c879
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
execution-context.js
apps/remix-ide/src/blockchain/execution-context.js
+3
-5
No files found.
apps/remix-ide/src/blockchain/execution-context.js
View file @
a2f7af4f
...
...
@@ -21,8 +21,7 @@ export class ExecutionContext {
this
.
executionContext
=
null
this
.
blockGasLimitDefault
=
4300000
this
.
blockGasLimit
=
this
.
blockGasLimitDefault
this
.
defaultFork
=
'berlin'
this
.
currentFork
=
this
.
defaultFork
this
.
currentFork
=
' - '
this
.
mainNetGenesisHash
=
'0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3'
this
.
customNetWorks
=
{}
this
.
blocks
=
{}
...
...
@@ -125,18 +124,17 @@ export class ExecutionContext {
executionContextChange
(
value
,
endPointUrl
,
confirmCb
,
infoCb
,
cb
)
{
const
context
=
value
.
context
const
fork
=
value
.
fork
||
this
.
defaultFork
if
(
!
cb
)
cb
=
()
=>
{}
if
(
!
confirmCb
)
confirmCb
=
()
=>
{}
if
(
!
infoCb
)
infoCb
=
()
=>
{}
if
(
context
===
'vm'
)
{
this
.
executionContext
=
context
this
.
currentFork
=
fork
this
.
currentFork
=
value
.
fork
this
.
event
.
trigger
(
'contextChanged'
,
[
'vm'
])
return
cb
()
}
this
.
currentFork
=
this
.
defaultFork
// in the case of injected and web3, we default to the last fork.
this
.
currentFork
=
' - '
if
(
context
===
'injected'
)
{
if
(
injectedProvider
===
undefined
)
{
...
...
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