Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the txmaker test util #260

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test_utils/txmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def getScriptPubkeyFromWallet(wallet: WalletPolicy, change: bool, address_index:
# Iterate in reverse order, as strings identifying a small-index key (like @1) can be a
# prefix of substrings identifying a large-index key (like @12), but not the other way around
# A more structural parsing would be more robust
for i, key_info_str in enumerate(reversed(wallet.keys_info)):
for i, key_info_str in reversed(list(enumerate(wallet.keys_info))):
if wallet.version == WalletType.WALLET_POLICY_V1 and key_info_str[-3:] != "/**":
raise ValueError("All the keys must have wildcard (/**)")

Expand Down
Loading