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
ac2c3063
Commit
ac2c3063
authored
Dec 31, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set default solidity compiler version
parent
f4dea0ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
package.json
package.json
+1
-1
compile-tab.js
src/app/tabs/compile-tab.js
+2
-2
No files found.
package.json
View file @
ac2c3063
...
...
@@ -156,7 +156,7 @@
"build_debugger"
:
"browserify src/app/debugger/remix-debugger/index.js -o src/app/debugger/remix-debugger/build/app.js"
,
"browsertest"
:
"sleep 5 && npm run nightwatch_local"
,
"csslint"
:
"csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/"
,
"downloadsolc_root"
:
"wget --no-check-certificate https://solc-bin.ethereum.org/soljson.js"
,
"downloadsolc_root"
:
"wget --no-check-certificate https://solc-bin.ethereum.org/
bin/soljson-v0.5.1+commit.c8a2cb62.js -O
soljson.js"
,
"lint"
:
"standard | notify-error"
,
"make-mock-compiler"
:
"node ci/makeMockCompiler.js"
,
"minify"
:
"uglifyjs --in-source-map inline --source-map-inline -c warnings=false"
,
...
...
src/app/tabs/compile-tab.js
View file @
ac2c3063
...
...
@@ -66,6 +66,7 @@ module.exports = class CompileTab {
timeout
:
300
,
allversions
:
null
,
selectedVersion
:
null
,
defaultVersion
:
'soljson-v0.5.1+commit.c8a2cb62.js'
,
baseurl
:
'https://solc-bin.ethereum.org/bin'
}
self
.
data
.
optimize
=
self
.
_components
.
queryParams
.
get
().
optimize
...
...
@@ -218,7 +219,6 @@ module.exports = class CompileTab {
<select onchange=
${
onchangeLoadVersion
}
class="
${
css
.
select
}
" id="versionSelector" disabled>
<option disabled selected>Select new compiler version</option>
</select>`
if
(
self
.
data
.
allversions
&&
self
.
data
.
selectedVersion
)
self
.
_updateVersionSelector
()
self
.
_view
.
version
=
yo
`<span id="version"></span>`
self
.
_view
.
warnCompilationSlow
=
yo
`<i title="Compilation Slow" style="visibility:hidden" class="
${
css
.
warnCompilationSlow
}
fa fa-exclamation-triangle" aria-hidden="true"></i>`
...
...
@@ -458,7 +458,7 @@ module.exports = class CompileTab {
try
{
const
data
=
JSON
.
parse
(
json
)
allversions
=
data
.
builds
.
slice
().
reverse
()
selectedVersion
=
data
.
releases
[
data
.
latestRelease
]
selectedVersion
=
self
.
data
.
defaultVersion
if
(
self
.
_components
.
queryParams
.
get
().
version
)
selectedVersion
=
self
.
_components
.
queryParams
.
get
().
version
}
catch
(
e
)
{
addTooltip
(
'Cannot load compiler version list. It might have been blocked by an advertisement blocker. Please try deactivating any of them from this page and reload.'
)
...
...
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