Bugfix: Assign srcmap when contract name is specified explicitly

pull/72/head
Bernhard Mueller 7 years ago
parent 0b18af979f
commit ba9fa8b56b
  1. 1
      mythril/ether/soliditycontract.py

@ -43,6 +43,7 @@ class SolidityContract(ETHContract):
self.name = name self.name = name
self.code = contract['bin-runtime'] self.code = contract['bin-runtime']
self.creation_code = contract['bin'] self.creation_code = contract['bin']
srcmap = contract['srcmap-runtime'].split(";")
has_contract = True has_contract = True
break break

Loading…
Cancel
Save