diff --git a/slither/tools/upgradeability/checks/variables_order.py b/slither/tools/upgradeability/checks/variables_order.py index 8e30d3c3f..8404f1d25 100644 --- a/slither/tools/upgradeability/checks/variables_order.py +++ b/slither/tools/upgradeability/checks/variables_order.py @@ -236,7 +236,7 @@ Avoid variables in the proxy. If a variable is in the proxy, ensure it has the s if len(order2) <= len(order1): return [] - idx = len(order2) - len(order1) + idx = len(order1) while idx < len(order2): variable2 = order2[idx]