Improve ConstantPragma output

pull/81/head
Josselin 6 years ago
parent 54d140e24e
commit 6a1c98434b
  1. 1
      slither/detectors/attributes/constant_pragma.py

@ -25,6 +25,7 @@ class ConstantPragma(AbstractDetector):
if len(versions) > 1: if len(versions) > 1:
info = "Different versions of Solidity is used in {}:\n".format(self.filename) info = "Different versions of Solidity is used in {}:\n".format(self.filename)
info += "\t- Version used: {}\n".format([str(v) for v in versions])
for p in pragma: for p in pragma:
info += "\t- {} declares {}\n".format(p.source_mapping_str, str(p)) info += "\t- {} declares {}\n".format(p.source_mapping_str, str(p))
self.log(info) self.log(info)

Loading…
Cancel
Save