mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-07 14:18:18 +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)
|
return keyhash_to_p2pkh_script(payload)
|
||||||
elif version == 196: # testnet script hash
|
elif version == 196: # testnet script hash
|
||||||
return scripthash_to_p2sh_script(payload)
|
return scripthash_to_p2sh_script(payload)
|
||||||
# TODO: also support other address formats
|
raise ValueError(f"Unsupported address type: {address}")
|
||||||
else:
|
|
||||||
assert False
|
|
||||||
|
|
||||||
|
|
||||||
class TestFrameworkScript(unittest.TestCase):
|
class TestFrameworkScript(unittest.TestCase):
|
||||||
|
|||||||
Reference in New Issue
Block a user