mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
test: Remove fixed TODO in address_to_scriptpubkey
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user