|
|
@ -14,7 +14,7 @@ class CompilerContainer { |
|
|
|
this.compileTabLogic = compileTabLogic |
|
|
|
this.compileTabLogic = compileTabLogic |
|
|
|
this.editor = editor |
|
|
|
this.editor = editor |
|
|
|
this.config = config |
|
|
|
this.config = config |
|
|
|
this.queryParams = queryParams |
|
|
|
this.queryParams = queryParamse |
|
|
|
|
|
|
|
|
|
|
|
this.data = { |
|
|
|
this.data = { |
|
|
|
hideWarnings: config.get('hideWarnings') || false, |
|
|
|
hideWarnings: config.get('hideWarnings') || false, |
|
|
@ -114,7 +114,7 @@ class CompilerContainer { |
|
|
|
|
|
|
|
|
|
|
|
_retrieveVersion () { |
|
|
|
_retrieveVersion () { |
|
|
|
let version = this._view.versionSelector.value |
|
|
|
let version = this._view.versionSelector.value |
|
|
|
return version.substring(9, 14) |
|
|
|
return version.substring(9, version.length) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
@ -313,8 +313,7 @@ class CompilerContainer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_updateLanguageSelector () { |
|
|
|
_updateLanguageSelector () { |
|
|
|
if (semver.lt(this._retrieveVersion(), '0.5.7')) { |
|
|
|
if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { |
|
|
|
this._view.languageSelector.setAttribute('disabled', '') |
|
|
|
|
|
|
|
this._view.languageSelector.value = 'Solidity' |
|
|
|
this._view.languageSelector.value = 'Solidity' |
|
|
|
this.compileTabLogic.setLanguage('Solidity') |
|
|
|
this.compileTabLogic.setLanguage('Solidity') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|