diff --git a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js index f702de56a15..9e506281367 100644 --- a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js +++ b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js @@ -198,12 +198,15 @@ class CompilerContainer { class="custom-select ml-2 ${css.runs}" id="runs" placeholder="200" + value="200" type="number" title="Estimated number of times each opcode of the deployed code will be executed across the life-time of the contract." onchange=${() => this.onchangeRuns()} >` - if (this.compileTabLogic.optimize) this._view.runs.removeAttribute('disabled') - else { + if (this.compileTabLogic.optimize) { + this._view.runs.removeAttribute('disabled') + this._view.runs.value = this.compileTabLogic.runs + } else { this._view.runs.setAttribute('disabled', '') }