@ -66,6 +66,7 @@ module.exports = class CompileTab {
timeout : 300 ,
timeout : 300 ,
allversions : null ,
allversions : null ,
selectedVersion : null ,
selectedVersion : null ,
defaultVersion : 'soljson-v0.5.1+commit.c8a2cb62.js' ,
baseurl : 'https://solc-bin.ethereum.org/bin'
baseurl : 'https://solc-bin.ethereum.org/bin'
}
}
self . data . optimize = self . _components . queryParams . get ( ) . optimize
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 >
< select onchange = $ { onchangeLoadVersion } class = "${css.select}" id = "versionSelector" disabled >
< option disabled selected > Select new compiler version < / o p t i o n >
< option disabled selected > Select new compiler version < / o p t i o n >
< / s e l e c t > `
< / s e l e c t > `
if ( self . data . allversions && self . data . selectedVersion ) self . _updateVersionSelector ( )
self . _view . version = yo ` <span id="version"></span> `
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> `
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 {
try {
const data = JSON . parse ( json )
const data = JSON . parse ( json )
allversions = data . builds . slice ( ) . reverse ( )
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
if ( self . _components . queryParams . get ( ) . version ) selectedVersion = self . _components . queryParams . get ( ) . version
} catch ( e ) {
} 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.' )
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.' )