From 46f3caf8060a460c9e13d36c2b02f74f52dc333c Mon Sep 17 00:00:00 2001 From: Simone Date: Mon, 17 Feb 2025 12:51:50 +0100 Subject: [PATCH] Initialize size to 0 --- slither/tools/read_storage/read_storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slither/tools/read_storage/read_storage.py b/slither/tools/read_storage/read_storage.py index 728636f2e..06521e656 100644 --- a/slither/tools/read_storage/read_storage.py +++ b/slither/tools/read_storage/read_storage.py @@ -578,6 +578,7 @@ def _find_struct_var_slot( slot = int.from_bytes(slot_as_bytes, "big") offset = 0 type_to = "" + size = 0 for var in elems: var_type = var.type if isinstance(var_type, ElementaryType):