From ba9fa8b56b00b1c78d99cd042256d83898e3307f Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Wed, 28 Feb 2018 00:08:13 +0700 Subject: [PATCH] Bugfix: Assign srcmap when contract name is specified explicitly --- mythril/ether/soliditycontract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mythril/ether/soliditycontract.py b/mythril/ether/soliditycontract.py index 3e6bcf8d..913bcd04 100644 --- a/mythril/ether/soliditycontract.py +++ b/mythril/ether/soliditycontract.py @@ -43,6 +43,7 @@ class SolidityContract(ETHContract): self.name = name self.code = contract['bin-runtime'] self.creation_code = contract['bin'] + srcmap = contract['srcmap-runtime'].split(";") has_contract = True break