Problem: truffle project analysis ignores --solc-args

This prevents passing custom `solc` arguments which is important in some
cases (for example, `--allow-paths` is a very useful option)

Solution: pass solc_args through
pull/582/head
Yurii Rashkovskii 6 years ago
parent 0cea8f5627
commit a4eea864f8
No known key found for this signature in database
GPG Key ID: 1D60D7CFD80845FF
  1. 2
      mythril/support/truffle.py

@ -40,7 +40,7 @@ def analyze_truffle_project(sigs, args):
if len(bytecode) < 4:
continue
sigs.import_from_solidity_source(contractdata['sourcePath'])
sigs.import_from_solidity_source(contractdata['sourcePath'], solc_args=args.solc_args)
sigs.write()
ethcontract = ETHContract(bytecode, name=name)

Loading…
Cancel
Save