diff --git a/apps/remix-ide/src/app/tabs/compile-tab.js b/apps/remix-ide/src/app/tabs/compile-tab.js index 6ed2c52ce7..2c26fa9235 100644 --- a/apps/remix-ide/src/app/tabs/compile-tab.js +++ b/apps/remix-ide/src/app/tabs/compile-tab.js @@ -4,8 +4,6 @@ import ReactDOM from 'react-dom' import { SolidityCompiler, CompileTab as CompileTabLogic, compile, parseContracts } from '@remix-ui/solidity-compiler' // eslint-disable-line import { ViewPlugin } from '@remixproject/engine-web' import * as packageJson from '../../../../../package.json' -import publishToStorage from '../../publishToStorage' -import { compile } from '@remix-project/remix-solidity' const EventEmitter = require('events') const $ = require('jquery') diff --git a/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts b/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts index 5541654ac7..50fc98410a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts @@ -12,7 +12,7 @@ const profile = { export class CompileTab extends Plugin { public compiler public optimize - public runs: number + public runs public evmVersion: string public compilerImport public event @@ -30,7 +30,7 @@ export class CompileTab extends Plugin { this.compiler.set('optimize', this.optimize) this.runs = this.queryParams.get().runs - this.runs = this.runs || 200 + this.runs = this.runs && this.runs !== 'undefined' ? this.runs : 200 this.queryParams.update({ runs: this.runs }) this.compiler.set('runs', this.runs)