download version

pull/2265/head
Aniket-Engg 3 years ago committed by yann300
parent 25039446ab
commit d91701b136
  1. 5
      libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

@ -141,14 +141,13 @@ export class CompileTabLogic {
}) })
} }
} else if (externalCompType === 'truffle') { } else if (externalCompType === 'truffle') {
console.log('inside else if ----externalCompType---->', externalCompType)
const fileName = this.api.currentFile const fileName = this.api.currentFile
const { currentVersion, optimize, runs, evmVersion} = this.compiler.state const { currentVersion, optimize, runs, evmVersion} = this.compiler.state
if (currentVersion) { if (currentVersion) {
const compConfig = { const compConfig = {
compilers: { compilers: {
solc: { solc: {
version: `'${currentVersion.substring(0, currentVersion.indexOf('+commit'))}'`, version: `${currentVersion.substring(0, currentVersion.indexOf('+commit'))}`,
settings: { settings: {
optimizer: { optimizer: {
enabled: optimize, enabled: optimize,
@ -159,11 +158,9 @@ export class CompileTabLogic {
} }
} }
} }
console.log('before compileWithTruffle call')
this.api.compileWithTruffle(fileName, compConfig).then((result) => { this.api.compileWithTruffle(fileName, compConfig).then((result) => {
this.api.logToTerminal({ type: 'info', value: result }) this.api.logToTerminal({ type: 'info', value: result })
}).catch((error) => { }).catch((error) => {
console.log('errror------->', error)
this.api.logToTerminal({ type: 'error', value: error }) this.api.logToTerminal({ type: 'error', value: error })
}) })
} }

Loading…
Cancel
Save