From d68a8b9d5dafd724a1dc24f9c8b1f8caa93ea361 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 19 Nov 2019 11:44:52 +0100 Subject: [PATCH] fixed standard issues --- src/app/tabs/compileTab/compilerContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/compileTab/compilerContainer.js b/src/app/tabs/compileTab/compilerContainer.js index 315abbdf7f..dbc813c526 100644 --- a/src/app/tabs/compileTab/compilerContainer.js +++ b/src/app/tabs/compileTab/compilerContainer.js @@ -124,7 +124,7 @@ class CompilerContainer { const pragmaStr = pragmaArr[0].replace('pragma solidity', '').trim() const pragma = pragmaStr.substring(0, pragmaStr.length - 1) const fixedVersions = this.data.allversions.filter(obj => !obj.prerelease).map(obj => obj.version) - if (!semver.satisfies( this._retrieveVersion(), pragma)) { + if (!semver.satisfies(this._retrieveVersion(), pragma)) { const compilerToLoad = semver.maxSatisfying(fixedVersions, pragma) const compilerPath = this.data.allversions.filter(obj => !obj.prerelease && obj.version === compilerToLoad)[0].path if (this.data.selectedVersion !== compilerPath) { @@ -359,7 +359,7 @@ class CompilerContainer { } _updateLanguageSelector () { - /// This is the first version when Yul is available + // This is the first version when Yul is available if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) { this._view.languageSelector.setAttribute('disabled', '') this._view.languageSelector.value = 'Solidity'