Skip to content

Commit

Permalink
add square brackets to make it clear that the number is an array inde…
Browse files Browse the repository at this point in the history
…x of observations
  • Loading branch information
noxx3xxon authored and noxx committed Jul 26, 2022
1 parent e178b37 commit d8455e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ ENV/

# Test results
test_artifacts/

# crytic export
crytic-export/
2 changes: 1 addition & 1 deletion slither/tools/read_storage/read_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def print_table(self) -> None:
struct_var = info["elems"][item][key].get('struct_var')

# doesn't handle deep keys currently
var_name_struct_or_array_var = "{} -> {} -> {}".format(var, item, struct_var)
var_name_struct_or_array_var = "{}[{}] -> {}".format(var, item, struct_var)

if environ.get("TABLE_VALUE") is None:
tabulate_data.append([slot, offset, size, type_string, var_name_struct_or_array_var])
Expand Down

0 comments on commit d8455e3

Please sign in to comment.