From e9d3a4bfbcabfce66aab94e70897ad0666ac9cdc Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Wed, 5 Jun 2024 23:49:34 +0200 Subject: [PATCH] fix-txmaker --- test_utils/txmaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_utils/txmaker.py b/test_utils/txmaker.py index e5caeee73..da05029b3 100644 --- a/test_utils/txmaker.py +++ b/test_utils/txmaker.py @@ -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 (/**)")