Skip to content

Commit e60f31e

Browse files
committed
update runs in URL (Aniket)
1 parent 34be586 commit e60f31e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,15 @@ class CompilerContainer {
198198
class="custom-select ml-2 ${css.runs}"
199199
id="runs"
200200
placeholder="200"
201+
value="200"
201202
type="number"
202203
title="Estimated number of times each opcode of the deployed code will be executed across the life-time of the contract."
203204
onchange=${() => this.onchangeRuns()}
204205
>`
205-
if (this.compileTabLogic.optimize) this._view.runs.removeAttribute('disabled')
206-
else {
206+
if (this.compileTabLogic.optimize) {
207+
this._view.runs.removeAttribute('disabled')
208+
this._view.runs.value = this.compileTabLogic.runs
209+
} else {
207210
this._view.runs.setAttribute('disabled', '')
208211
}
209212

0 commit comments

Comments
 (0)