From 25ffcfcf36ae068e47a639ad9bc36aefa4cfc1a5 Mon Sep 17 00:00:00 2001 From: MozirDmitriy Date: Thu, 4 Sep 2025 10:22:16 +0300 Subject: [PATCH] fix(wallet_policies): use descriptor instead of desc to prevent NameError --- bip-0388/wallet_policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0388/wallet_policies.py b/bip-0388/wallet_policies.py index 43aa54fa..3c104dac 100755 --- a/bip-0388/wallet_policies.py +++ b/bip-0388/wallet_policies.py @@ -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: