Skip to content

Commit

Permalink
Typo: /<0;1>, not /<0,1>
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Dec 11, 2023
1 parent 7ef6803 commit 07f0fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bip-wallet-policies/wallet_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def to_descriptor(self) -> str:

desc = self.descriptor_template

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

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

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

0 comments on commit 07f0fcf

Please sign in to comment.