diff --git a/mythril/support/truffle.py b/mythril/support/truffle.py index 2ebb8003..c20f873a 100644 --- a/mythril/support/truffle.py +++ b/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: