Skip to content

Commit f92d8c0

Browse files
authored
fix(vulture): track the hash_tree_root handler rename (leanEthereum#1150)
The single-dispatch hash_tree_root handlers were renamed from the _htr_ prefix to the spelled-out _hash_tree_root_ prefix, but the whitelist kept the old names. With the old names no longer defined, vulture reports the renamed handlers as unused and the dead-code check fails. Update the whitelist entries to the current names.
1 parent d9028d9 commit f92d8c0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

vulture_whitelist.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
# Single-dispatch handlers for the hash_tree_root generic function.
1717
# Dispatched by argument type, so they have no direct call site.
18-
_htr_packed_leaf
19-
_htr_bytes
20-
_htr_bytelist
21-
_htr_bitvector_base
22-
_htr_bitlist_base
23-
_htr_vector
24-
_htr_list
25-
_htr_container
18+
_hash_tree_root_packed_leaf
19+
_hash_tree_root_bytes
20+
_hash_tree_root_bytelist
21+
_hash_tree_root_bitvector_base
22+
_hash_tree_root_bitlist_base
23+
_hash_tree_root_vector
24+
_hash_tree_root_list
25+
_hash_tree_root_container
2626

2727
# Magic methods invoked by the interpreter.
2828
# Flagged only because they are defined as overloaded functions or as an

0 commit comments

Comments
 (0)