1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-09-22 13:51:38 +00:00

fix(wallet_policies): use descriptor instead of desc to prevent NameError

This commit is contained in:
MozirDmitriy 2025-09-04 10:22:16 +03:00 committed by GitHub
parent 4d6cd518a0
commit 25ffcfcf36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ class WalletPolicy(object):
for op_pos_start in find_all(descriptor, op + "("):
# 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
if op in operators_key_all_but_first: