Add contract to as dict

pull/334/head
Joran Honig 6 years ago
parent deb98df7c5
commit 390bd99b17
  1. 2
      mythril/analysis/report.py

@ -22,7 +22,7 @@ class Issue:
@property @property
def as_dict(self): def as_dict(self):
issue = {'title': self.title, 'description':self.description, 'function': self.function, 'type': self.type, 'address': self.address, 'debug': self.debug} issue = {'title': self.title, 'contract': self.contract, 'description': self.description, 'function': self.function, 'type': self.type, 'address': self.address, 'debug': self.debug}
if self.filename and self.lineno: if self.filename and self.lineno:
issue['filename'] = self.filename issue['filename'] = self.filename

Loading…
Cancel
Save