fix modifiers no json output file bug

--print modifiers --json modifiers.json no json output file bug
pull/1012/head
whoami 3 years ago committed by GitHub
parent 168492ad89
commit 0e752aeb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/printers/summary/modifier_calls.py

@ -38,6 +38,8 @@ class Modifiers(AbstractPrinter):
table.add_row([function.name, [m.name for m in set(modifiers)]]) table.add_row([function.name, [m.name for m in set(modifiers)]])
txt += "\n" + str(table) txt += "\n" + str(table)
self.info(txt) self.info(txt)
all_txt += txt
all_tables.append((contract.name, table))
res = self.generate_output(all_txt) res = self.generate_output(all_txt)
for name, table in all_tables: for name, table in all_tables:

Loading…
Cancel
Save