Merge pull request #1420 from ethereum/slitherfix2

rm spaces in slither command
pull/5370/head
bunsenstraat 3 years ago committed by GitHub
commit e963aa61f0
  1. 6
      libs/remixd/src/services/slitherClient.ts

@ -120,9 +120,9 @@ export class SlitherClient extends PluginClient {
allowPaths = allowPathString allowPaths = allowPathString
remaps = remapString.trim() remaps = remapString.trim()
} }
const allowPathsOption: string = allowPaths ? `--allow-paths ${allowPaths}` : '' const allowPathsOption: string = allowPaths ? `--allow-paths ${allowPaths} ` : ''
const optimizeOption: string = optimize ? ' --optimize ' : '' const optimizeOption: string = optimize ? '--optimize ' : ''
const evmOption: string = evmVersion ? ` --evm-version ${evmVersion}` : '' const evmOption: string = evmVersion ? `--evm-version ${evmVersion}` : ''
const solcArgs: string = optimizeOption || evmOption || allowPathsOption ? `--solc-args '${allowPathsOption}${optimizeOption}${evmOption}'` : '' const solcArgs: string = optimizeOption || evmOption || allowPathsOption ? `--solc-args '${allowPathsOption}${optimizeOption}${evmOption}'` : ''
const solcRemaps = remaps ? `--solc-remaps "${remaps}"` : '' const solcRemaps = remaps ? `--solc-remaps "${remaps}"` : ''

Loading…
Cancel
Save