mirror of
https://github.com/bitcoin/bips.git
synced 2025-10-10 17:23:08 +02:00
Merge pull request #1952 from MozirDmitriy/mzd
BIP388: fix variable name in from_descriptor() to prevent NameError
This commit is contained in:
@@ -138,7 +138,7 @@ class WalletPolicy(object):
|
|||||||
for op_pos_start in find_all(descriptor, op + "("):
|
for op_pos_start in find_all(descriptor, op + "("):
|
||||||
|
|
||||||
# ignore if not a whole word (otherwise "sortedmulti" would be found inside "multi")
|
# ignore if not a whole word (otherwise "sortedmulti" would be found inside "multi")
|
||||||
if op_pos_start > 0 and 'a' <= desc[op_pos_start - 1] <= 'z':
|
if op_pos_start > 0 and 'a' <= descriptor[op_pos_start - 1] <= 'z':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if op in operators_key_all_but_first:
|
if op in operators_key_all_but_first:
|
||||||
|
Reference in New Issue
Block a user