solc fix input params

pull/5370/head
yann300 3 years ago
parent 04c1cdf890
commit a5d3e94838
  1. 14
      libs/remixd/src/services/slitherClient.ts

@ -123,7 +123,19 @@ export class SlitherClient extends PluginClient {
const allowPathsOption: string = allowPaths ? `--allow-paths ${allowPaths}` : ''
const optimizeOption: string = optimize ? ' --optimize ' : ''
const evmOption: string = evmVersion ? ` --evm-version ${evmVersion}` : ''
const solcArgs: string = optimizeOption || evmOption || allowPathsOption ? `--solc-args '${allowPathsOption}${optimizeOption}${evmOption}'` : ''
let solcArgs = ''
if (optimizeOption) {
solcArgs += ' ' + optimizeOption
}
if (evmOption) {
solcArgs += ' ' + evmOption
}
if (allowPathsOption) {
solcArgs += ' ' + allowPathsOption
}
if (solcArgs) {
solcArgs = `--solc-args "${solcArgs.trim()}"`
}
const solcRemaps = remaps ? `--solc-remaps "${remaps}"` : ''
const outputFile: string = 'remix-slitherReport_' + Math.floor(Date.now() / 1000) + '.json'

Loading…
Cancel
Save