solc fix input params

pull/1496/head
yann300 3 years ago
parent e34e6c41d3
commit cf98050429
  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