Reformat code with black

pull/653/head
Nikhil Parasaram 6 years ago
parent 9dcfe53da0
commit 973148db66
  1. 7
      mythril/ether/soliditycontract.py
  2. 4
      mythril/mythril.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(): for key, contract in data["contracts"].items():
filename, name = key.split(":") filename, name = key.split(":")
if filename == input_file and len(contract["bin-runtime"]): 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): class SolidityContract(ETHContract):

@ -378,7 +378,7 @@ class Mythril(object):
input_file=file, input_file=file,
name=contract_name, name=contract_name,
solc_args=self.solc_args, solc_args=self.solc_args,
solc_binary=self.solc_binary solc_binary=self.solc_binary,
) )
self.contracts.append(contract) self.contracts.append(contract)
contracts.append(contract) contracts.append(contract)
@ -386,7 +386,7 @@ class Mythril(object):
for contract in get_contracts_from_file( for contract in get_contracts_from_file(
input_file=file, input_file=file,
solc_args=self.solc_args, solc_args=self.solc_args,
solc_binary=self.solc_binary solc_binary=self.solc_binary,
): ):
self.contracts.append(contract) self.contracts.append(contract)
contracts.append(contract) contracts.append(contract)

Loading…
Cancel
Save