Skip to content

Commit

Permalink
updated with remix-solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Jan 14, 2020
1 parent 9456645 commit 92c355b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/app/tabs/compileTab/compileTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ 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
}

/**
* Set the compiler to using Solidity or Yul (default to Solidity)
* @params lang {'Solidity' | 'Yul'} ...
*/
setLanguage (lang) {
this.compiler.setLanguage(lang)
this.compiler.language = lang
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/compiler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit 92c355b

Please sign in to comment.