Skip to content

Commit

Permalink
Merge pull request #260 from LedgerHQ/fix-txmaker
Browse files Browse the repository at this point in the history
Fix the txmaker test util
  • Loading branch information
bigspider authored Jun 6, 2024
2 parents e589d75 + e9d3a4b commit ec0ca4a
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ec0ca4a

Please sign in to comment.