Add contract name to json output for truffle projects

pull/72/head
vdrg 7 years ago
parent 6692475e09
commit 5cb1c24acc
  1. 2
      mythril/support/truffle.py

@ -85,7 +85,7 @@ def analyze_truffle_project(args):
if (args.outform == 'json'):
result = {'success': True, 'error': None, 'issues': list(map(lambda x: x.as_dict(), issues))}
result = { 'contract': name, 'result': {'success': True, 'error': None, 'issues': list(map(lambda x: x.as_dict(), issues))}}
print(json.dumps(result))
else:

Loading…
Cancel
Save