Skip to content

Commit f420c7f

Browse files
authored
Merge pull request #1952 from MozirDmitriy/mzd
BIP388: fix variable name in from_descriptor() to prevent NameError
2 parents 4d6cd51 + 25ffcfc commit f420c7f

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)