From 106eeee6562c27c920821016bcbcfe5dee5f4e6b Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 2 Jul 2019 19:14:19 +0200 Subject: [PATCH 1/4] Update compilerContainer.js --- src/app/tabs/compileTab/compilerContainer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index b68eb6acf9f..c25188688af 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -14,7 +14,7 @@ class CompilerContainer { this.compileTabLogic = compileTabLogic this.editor = editor this.config = config - this.queryParams = queryParams + this.queryParams = queryParamse this.data = { hideWarnings: config.get('hideWarnings') || false, @@ -114,7 +114,7 @@ class CompilerContainer { _retrieveVersion () { let version = this._view.versionSelector.value - return version.substring(9, 14) + return version.substring(9, version.length) } render () { @@ -313,8 +313,7 @@ class CompilerContainer { } _updateLanguageSelector () { - if (semver.lt(this._retrieveVersion(), '0.5.7')) { - this._view.languageSelector.setAttribute('disabled', '') + if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { this._view.languageSelector.value = 'Solidity' this.compileTabLogic.setLanguage('Solidity') } else { From dd262aa839935389a5a248fafba131b8a49dbf5a Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 2 Jul 2019 19:17:31 +0200 Subject: [PATCH 2/4] typo --- src/app/tabs/compileTab/compilerContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index c25188688af..23846578eed 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -14,7 +14,7 @@ class CompilerContainer { this.compileTabLogic = compileTabLogic this.editor = editor this.config = config - this.queryParams = queryParamse + this.queryParams = queryParams this.data = { hideWarnings: config.get('hideWarnings') || false, From 0098953d25f4f96db63ab40b895569e76870032f Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 2 Jul 2019 19:18:38 +0200 Subject: [PATCH 3/4] intend --- src/app/tabs/compileTab/compilerContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index 23846578eed..015f0479c62 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -313,7 +313,7 @@ class CompilerContainer { } _updateLanguageSelector () { - if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { + if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { this._view.languageSelector.value = 'Solidity' this.compileTabLogic.setLanguage('Solidity') } else { From d293c657dd1abfe435336aa0c904ed61f370c545 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Wed, 3 Jul 2019 11:24:39 +0200 Subject: [PATCH 4/4] readd accidentally removed line --- src/app/tabs/compileTab/compilerContainer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index 015f0479c62..0ab96627f7d 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -314,6 +314,7 @@ class CompilerContainer { _updateLanguageSelector () { if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { + this._view.languageSelector.setAttribute('disabled', '') this._view.languageSelector.value = 'Solidity' this.compileTabLogic.setLanguage('Solidity') } else {