ensure runs is an int

pull/543/head
yann300 4 years ago committed by LianaHus
parent 815fcabdcb
commit 008fb94e05
  1. 3
      libs/remix-solidity/src/compiler/compiler.ts

@ -52,8 +52,9 @@ export class Compiler {
* @param value value of key in CompilerState
*/
set <K extends keyof CompilerState>(key: K, value: CompilerState[K]): void {
set <K extends keyof CompilerState>(key: K, value: CompilerState[K]): void {
this.state[key] = value
if (key === 'runs') this.state['runs'] = parseInt(value)
}
/**

Loading…
Cancel
Save