follow-up descriptor.py: small clean-up
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user