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
ef0c878b
Commit
ef0c878b
authored
Nov 03, 2020
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
let instead of const to return await
parent
e48b1b88
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
compiler-helpers.js
apps/remix-ide/src/app/compiler/compiler-helpers.js
+1
-1
compile-tab.js
apps/remix-ide/src/app/tabs/compile-tab.js
+1
-1
compilerContainer.js
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
+10
-2
No files found.
apps/remix-ide/src/app/compiler/compiler-helpers.js
View file @
ef0c878b
...
...
@@ -4,7 +4,7 @@ import { Compiler } from '@remix-project/remix-solidity'
import
CompilerAbstract
from
'./compiler-abstract'
export
const
compile
=
async
(
compilationTargets
,
settings
)
=>
{
cons
t
res
=
await
(()
=>
{
le
t
res
=
await
(()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
compiler
=
new
Compiler
(()
=>
{})
compiler
.
set
(
'evmVersion'
,
settings
.
evmVersion
)
...
...
apps/remix-ide/src/app/tabs/compile-tab.js
View file @
ef0c878b
...
...
@@ -221,7 +221,7 @@ class CompileTab extends ViewPlugin {
* @param {object} settings {evmVersion, optimize, runs, version, language}
*/
async
compileWithParameters
(
compilationTargets
,
settings
)
{
cons
t
res
=
await
compile
(
compilationTargets
,
settings
)
le
t
res
=
await
compile
(
compilationTargets
,
settings
)
return
res
}
...
...
apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js
View file @
ef0c878b
...
...
@@ -200,6 +200,7 @@ class CompilerContainer {
placeholder="200"
type="number"
title="Number of optimisation runs."
onchange=
${()
=>
this
.
onchangeRuns
()}
>`
if
(
this
.
compileTabLogic
.
optimize
)
this
.
_view
.
runs
.
removeAttribute
(
'disabled'
)
else
{
...
...
@@ -343,13 +344,19 @@ class CompilerContainer {
onchangeOptimize
()
{
this
.
compileTabLogic
.
setOptimize
(
!!
this
.
_view
.
optimize
.
checked
)
if
(
this
.
compileTabLogic
.
optimize
)
this
.
_view
.
runs
.
removeAttribute
(
'disabled'
)
else
{
if
(
this
.
compileTabLogic
.
optimize
)
{
this
.
_view
.
runs
.
removeAttribute
(
'disabled'
)
}
else
{
this
.
_view
.
runs
.
setAttribute
(
'disabled'
,
''
)
}
this
.
compileIfAutoCompileOn
()
}
onchangeRuns
()
{
this
.
compileTabLogic
.
setRuns
(
this
.
_view
.
runs
.
value
)
this
.
compileIfAutoCompileOn
()
}
onchangeLanguage
()
{
this
.
compileTabLogic
.
setLanguage
(
this
.
_view
.
languageSelector
.
value
)
this
.
compileIfAutoCompileOn
()
...
...
@@ -391,6 +398,7 @@ class CompilerContainer {
setRuns
(
value
)
{
this
.
_view
.
runs
.
value
=
value
this
.
onchangeRuns
()
}
setLanguage
(
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