Fix logical bug in parsing solc output

pull/72/head
Bernhard Mueller 7 years ago
parent e047d1ae04
commit 5b786e1866
  1. 4
      mythril/ether/soliditycontract.py

@ -28,11 +28,11 @@ class SolidityContract(ETHContract):
code = file.read()
self.solidity_files.append(SolidityFile(filename, code))
has_contract = False
for key, contract in data['contracts'].items():
filename, name = key.split(":")
has_contract = False
if filename == input_file and len(contract['bin-runtime']):
self.name = name
self.code = contract['bin-runtime']

Loading…
Cancel
Save