|
|
@ -202,6 +202,11 @@ def get_utilities_parser() -> ArgumentParser: |
|
|
|
"--solc-json", |
|
|
|
"--solc-json", |
|
|
|
help="Json for the optional 'settings' parameter of solc's standard-json input", |
|
|
|
help="Json for the optional 'settings' parameter of solc's standard-json input", |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
parser.add_argument( |
|
|
|
|
|
|
|
"--solc-args", |
|
|
|
|
|
|
|
help="""Provide solc args, example: --solc-args "--allow-paths --include-path /root_folder/node_modules --base-path /home/contracts" """, |
|
|
|
|
|
|
|
type=str, |
|
|
|
|
|
|
|
) |
|
|
|
parser.add_argument( |
|
|
|
parser.add_argument( |
|
|
|
"--solv", |
|
|
|
"--solv", |
|
|
|
help="specify solidity compiler version. If not present, will try to install it (Experimental)", |
|
|
|
help="specify solidity compiler version. If not present, will try to install it (Experimental)", |
|
|
@ -921,11 +926,13 @@ def parse_args_and_execute(parser: ArgumentParser, args: Namespace) -> None: |
|
|
|
query_signature = args.__dict__.get("query_signature", None) |
|
|
|
query_signature = args.__dict__.get("query_signature", None) |
|
|
|
solc_json = args.__dict__.get("solc_json", None) |
|
|
|
solc_json = args.__dict__.get("solc_json", None) |
|
|
|
solv = args.__dict__.get("solv", None) |
|
|
|
solv = args.__dict__.get("solv", None) |
|
|
|
|
|
|
|
solc_args = args.__dict__.get("solc_args", None) |
|
|
|
disassembler = MythrilDisassembler( |
|
|
|
disassembler = MythrilDisassembler( |
|
|
|
eth=config.eth, |
|
|
|
eth=config.eth, |
|
|
|
solc_version=solv, |
|
|
|
solc_version=solv, |
|
|
|
solc_settings_json=solc_json, |
|
|
|
solc_settings_json=solc_json, |
|
|
|
enable_online_lookup=query_signature, |
|
|
|
enable_online_lookup=query_signature, |
|
|
|
|
|
|
|
solc_args=solc_args, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
address = load_code(disassembler, args) |
|
|
|
address = load_code(disassembler, args) |
|
|
|