Skip to content

Commit 25ffcfc

Browse files
authored
fix(wallet_policies): use descriptor instead of desc to prevent NameError
1 parent 4d6cd51 commit 25ffcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0388/wallet_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def parse_key_expressions(only_first=False, handle_musig=False):
138138
for op_pos_start in find_all(descriptor, op + "("):
139139

140140
# ignore if not a whole word (otherwise "sortedmulti" would be found inside "multi")
141-
if op_pos_start > 0 and 'a' <= desc[op_pos_start - 1] <= 'z':
141+
if op_pos_start > 0 and 'a' <= descriptor[op_pos_start - 1] <= 'z':
142142
continue
143143

144144
if op in operators_key_all_but_first:

0 commit comments

Comments
 (0)