From fa0587a306430b35d2852ee32f7eee2adb8c1e64 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 10 Mar 2026 08:48:09 +0100 Subject: [PATCH] test: Remove fixed TODO in address_to_scriptpubkey --- test/functional/test_framework/address.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/test_framework/address.py b/test/functional/test_framework/address.py index 2af5cf51d16..0f7de20b21f 100644 --- a/test/functional/test_framework/address.py +++ b/test/functional/test_framework/address.py @@ -193,9 +193,7 @@ def address_to_scriptpubkey(address): return keyhash_to_p2pkh_script(payload) elif version == 196: # testnet script hash return scripthash_to_p2sh_script(payload) - # TODO: also support other address formats - else: - assert False + raise ValueError(f"Unsupported address type: {address}") class TestFrameworkScript(unittest.TestCase):