diff --git a/mythril/ether/soliditycontract.py b/mythril/ether/soliditycontract.py index da142c71..fdf10fc0 100644 --- a/mythril/ether/soliditycontract.py +++ b/mythril/ether/soliditycontract.py @@ -30,7 +30,12 @@ def get_contracts_from_file(input_file, solc_args=None, solc_binary="solc"): for key, contract in data["contracts"].items(): filename, name = key.split(":") if filename == input_file and len(contract["bin-runtime"]): - yield SolidityContract(input_file=input_file, name=name, solc_args=solc_args, solc_binary=solc_binary) + yield SolidityContract( + input_file=input_file, + name=name, + solc_args=solc_args, + solc_binary=solc_binary, + ) class SolidityContract(ETHContract): diff --git a/mythril/mythril.py b/mythril/mythril.py index 728f47c6..6477d3b2 100644 --- a/mythril/mythril.py +++ b/mythril/mythril.py @@ -378,7 +378,7 @@ class Mythril(object): input_file=file, name=contract_name, solc_args=self.solc_args, - solc_binary=self.solc_binary + solc_binary=self.solc_binary, ) self.contracts.append(contract) contracts.append(contract) @@ -386,7 +386,7 @@ class Mythril(object): for contract in get_contracts_from_file( input_file=file, solc_args=self.solc_args, - solc_binary=self.solc_binary + solc_binary=self.solc_binary, ): self.contracts.append(contract) contracts.append(contract)