Update solidity helpers path in unittesting

pull/1339/head
ioedeveloper 3 years ago
parent 2b39ec1760
commit b4ee7f148e
  1. 2
      apps/remix-ide/src/app/tabs/compile-tab.js
  2. 4
      libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

@ -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 { SolidityCompiler, CompileTab as CompileTabLogic, compile, parseContracts } from '@remix-ui/solidity-compiler' // eslint-disable-line
import { ViewPlugin } from '@remixproject/engine-web' import { ViewPlugin } from '@remixproject/engine-web'
import * as packageJson from '../../../../../package.json' import * as packageJson from '../../../../../package.json'
import publishToStorage from '../../publishToStorage'
import { compile } from '@remix-project/remix-solidity'
const EventEmitter = require('events') const EventEmitter = require('events')
const $ = require('jquery') const $ = require('jquery')

@ -12,7 +12,7 @@ const profile = {
export class CompileTab extends Plugin { export class CompileTab extends Plugin {
public compiler public compiler
public optimize public optimize
public runs: number public runs
public evmVersion: string public evmVersion: string
public compilerImport public compilerImport
public event public event
@ -30,7 +30,7 @@ export class CompileTab extends Plugin {
this.compiler.set('optimize', this.optimize) this.compiler.set('optimize', this.optimize)
this.runs = this.queryParams.get().runs 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.queryParams.update({ runs: this.runs })
this.compiler.set('runs', this.runs) this.compiler.set('runs', this.runs)

Loading…
Cancel
Save