Raises exception for contract with a function without code. Issue #789 (#797)

This commit is contained in:
Arun John Kuruvilla 2018-03-15 16:31:18 -04:00 committed by Yan Ivnitskiy
parent cf789a4291
commit fb3938bb3e

View File

@ -624,6 +624,10 @@ class ManticoreEVM(Manticore):
assert(name is not None)
name = name.split(':')[1]
if contract['bin'] == '':
raise Exception('Solidity failed to compile your contract.')
bytecode = contract['bin'].decode('hex')
srcmap = contract['srcmap'].split(';')
srcmap_runtime = contract['srcmap-runtime'].split(';')