From 92c355baf00023d546269cf27f59f88f89959786 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 31 Dec 2019 16:04:36 +0530 Subject: [PATCH] updated with remix-solidity --- src/app/tabs/compileTab/compileTab.js | 10 +++++----- test/compiler-test.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/tabs/compileTab/compileTab.js b/src/app/tabs/compileTab/compileTab.js index afb09b6302..fd54496f6f 100644 --- a/src/app/tabs/compileTab/compileTab.js +++ b/src/app/tabs/compileTab/compileTab.js @@ -24,26 +24,26 @@ class CompileTab { this.optimize = this.queryParams.get().optimize this.optimize = this.optimize === 'true' this.queryParams.update({ optimize: this.optimize }) - this.compiler.setOptimize(this.optimize) + this.compiler.optimize = this.optimize this.evmVersion = this.queryParams.get().evmVersion if (this.evmVersion === 'undefined' || this.evmVersion === 'null' || !this.evmVersion) { this.evmVersion = null } this.queryParams.update({ evmVersion: this.evmVersion }) - this.compiler.setEvmVersion(this.evmVersion) + this.compiler.evmVersion = this.evmVersion } setOptimize (newOptimizeValue) { this.optimize = newOptimizeValue this.queryParams.update({ optimize: this.optimize }) - this.compiler.setOptimize(this.optimize) + this.compiler.optimize = this.optimize } setEvmVersion (newEvmVersion) { this.evmVersion = newEvmVersion this.queryParams.update({ evmVersion: this.evmVersion }) - this.compiler.setEvmVersion(this.evmVersion) + this.compiler.evmVersion = this.evmVersion } /** @@ -51,7 +51,7 @@ class CompileTab { * @params lang {'Solidity' | 'Yul'} ... */ setLanguage (lang) { - this.compiler.setLanguage(lang) + this.compiler.language = lang } /** diff --git a/test/compiler-test.js b/test/compiler-test.js index 7a0f245465..c7644c94b6 100644 --- a/test/compiler-test.js +++ b/test/compiler-test.js @@ -10,7 +10,7 @@ test('compiler.compile smoke', function (t) { var noop = function () {} var fakeImport = function (url, cb) { cb('Not implemented') } var compiler = new Compiler(fakeImport) - compiler.setCompileJSON(noop) + compiler.compileJSON = noop compiler.compile({ 'test': '' }, 'test') t.ok(compiler) })