Skip to content

Commit 07f0fcf

Browse files
committed
Typo: /<0;1>, not /<0,1>
1 parent 7ef6803 commit 07f0fcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bip-wallet-policies/wallet_policies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def to_descriptor(self) -> str:
5656

5757
desc = self.descriptor_template
5858

59-
# replace each "/**" with "/<0,1>/*" (TODO: remove if /** is not supported)
60-
desc = desc.replace("/**", "/<0,1>/*")
59+
# replace each "/**" with "/<0;1>/*"
60+
desc = desc.replace("/**", "/<0;1>/*")
6161

6262
# process all the @N expressions in decreasing order. This guarantees that string replacements
6363
# works as expected (as any prefix expression is processed after).
@@ -197,4 +197,4 @@ def parse_key_expressions(only_first=False, handle_musig=False):
197197
print("======================================================\n")
198198

199199
# Converting back to descriptors also works, as long as we take care of /**
200-
assert wp.to_descriptor().replace("/<0,1>/*", "/**") == desc
200+
assert wp.to_descriptor().replace("/<0;1>/*", "/**") == desc

0 commit comments

Comments
 (0)