diff --git a/.gitignore b/.gitignore index 096634e91f..fe1019a11d 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,6 @@ ENV/ # Test results test_artifacts/ + +# crytic export +crytic-export/ diff --git a/slither/tools/read_storage/read_storage.py b/slither/tools/read_storage/read_storage.py index c2507ce114..daa891ed14 100644 --- a/slither/tools/read_storage/read_storage.py +++ b/slither/tools/read_storage/read_storage.py @@ -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])