1
0

follow-up descriptor.py: small clean-up

This commit is contained in:
SomberNight
2023-03-01 18:46:34 +00:00
parent e457bb50e9
commit a80bef8421
3 changed files with 3 additions and 8 deletions

View File

@@ -442,7 +442,7 @@ def redeem_script_to_address(txin_type: str, scriptcode: str, *, net=None) -> st
raise NotImplementedError(txin_type)
def script_to_address(script: str, *, net=None) -> str:
def script_to_address(script: str, *, net=None) -> Optional[str]:
from .transaction import get_address_from_output_script
return get_address_from_output_script(bfh(script), net=net)