Merge pull request #997 from ConsenSys/bugfix/ret

Add creation hash to the code
pull/1000/head
JoranHonig 6 years ago committed by GitHub
commit 0615a2a219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      mythril/support/source_support.py

@ -31,6 +31,7 @@ class Source:
for contract in contracts: for contract in contracts:
self.source_list += [file.filename for file in contract.solidity_files] self.source_list += [file.filename for file in contract.solidity_files]
self._source_hash.append(contract.bytecode_hash) self._source_hash.append(contract.bytecode_hash)
self._source_hash.append(contract.creation_bytecode_hash)
elif isinstance(contracts[0], EVMContract): elif isinstance(contracts[0], EVMContract):
self.source_format = "evm-byzantium-bytecode" self.source_format = "evm-byzantium-bytecode"
self.source_type = ( self.source_type = (

Loading…
Cancel
Save