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
5df44c90
Unverified
Commit
5df44c90
authored
Jan 20, 2020
by
yann300
Committed by
GitHub
Jan 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2546 from ethereum/compiler-settings
set and get compiler state properly
parents
a756977b
60fd24ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
compile-tab.js
src/app/tabs/compile-tab.js
+1
-1
compileTab.js
src/app/tabs/compileTab/compileTab.js
+5
-5
No files found.
src/app/tabs/compile-tab.js
View file @
5df44c90
...
@@ -187,7 +187,7 @@ class CompileTab extends ViewPlugin {
...
@@ -187,7 +187,7 @@ class CompileTab extends ViewPlugin {
}
}
getCompilationResult
()
{
getCompilationResult
()
{
return
this
.
compileTabLogic
.
compiler
.
lastCompilationResult
return
this
.
compileTabLogic
.
compiler
.
state
.
lastCompilationResult
}
}
// This function is used by remix-plugin
// This function is used by remix-plugin
...
...
src/app/tabs/compileTab/compileTab.js
View file @
5df44c90
...
@@ -24,26 +24,26 @@ class CompileTab {
...
@@ -24,26 +24,26 @@ class CompileTab {
this
.
optimize
=
this
.
queryParams
.
get
().
optimize
this
.
optimize
=
this
.
queryParams
.
get
().
optimize
this
.
optimize
=
this
.
optimize
===
'true'
this
.
optimize
=
this
.
optimize
===
'true'
this
.
queryParams
.
update
({
optimize
:
this
.
optimize
})
this
.
queryParams
.
update
({
optimize
:
this
.
optimize
})
this
.
compiler
.
optimize
=
this
.
optimize
this
.
compiler
.
set
(
'optimize'
,
this
.
optimize
)
this
.
evmVersion
=
this
.
queryParams
.
get
().
evmVersion
this
.
evmVersion
=
this
.
queryParams
.
get
().
evmVersion
if
(
this
.
evmVersion
===
'undefined'
||
this
.
evmVersion
===
'null'
||
!
this
.
evmVersion
)
{
if
(
this
.
evmVersion
===
'undefined'
||
this
.
evmVersion
===
'null'
||
!
this
.
evmVersion
)
{
this
.
evmVersion
=
null
this
.
evmVersion
=
null
}
}
this
.
queryParams
.
update
({
evmVersion
:
this
.
evmVersion
})
this
.
queryParams
.
update
({
evmVersion
:
this
.
evmVersion
})
this
.
compiler
.
evmVersion
=
this
.
evmVersion
this
.
compiler
.
set
(
'evmVersion'
,
this
.
evmVersion
)
}
}
setOptimize
(
newOptimizeValue
)
{
setOptimize
(
newOptimizeValue
)
{
this
.
optimize
=
newOptimizeValue
this
.
optimize
=
newOptimizeValue
this
.
queryParams
.
update
({
optimize
:
this
.
optimize
})
this
.
queryParams
.
update
({
optimize
:
this
.
optimize
})
this
.
compiler
.
optimize
=
this
.
optimize
this
.
compiler
.
set
(
'optimize'
,
this
.
optimize
)
}
}
setEvmVersion
(
newEvmVersion
)
{
setEvmVersion
(
newEvmVersion
)
{
this
.
evmVersion
=
newEvmVersion
this
.
evmVersion
=
newEvmVersion
this
.
queryParams
.
update
({
evmVersion
:
this
.
evmVersion
})
this
.
queryParams
.
update
({
evmVersion
:
this
.
evmVersion
})
this
.
compiler
.
evmVersion
=
this
.
evmVersion
this
.
compiler
.
set
(
'evmVersion'
,
this
.
evmVersion
)
}
}
/**
/**
...
@@ -51,7 +51,7 @@ class CompileTab {
...
@@ -51,7 +51,7 @@ class CompileTab {
* @params lang {'Solidity' | 'Yul'} ...
* @params lang {'Solidity' | 'Yul'} ...
*/
*/
setLanguage
(
lang
)
{
setLanguage
(
lang
)
{
this
.
compiler
.
language
=
lang
this
.
compiler
.
set
(
'language'
,
lang
)
}
}
/**
/**
...
...
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