From 41337c583f71a261af940632a9e0194817a9e1d5 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Thu, 9 Nov 2023 16:21:24 -0800 Subject: [PATCH] `from_bytes` --- hsms/cmds/hsms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hsms/cmds/hsms.py b/hsms/cmds/hsms.py index c350131..b42115f 100644 --- a/hsms/cmds/hsms.py +++ b/hsms/cmds/hsms.py @@ -29,9 +29,9 @@ def unsigned_spend_from_blob(blob: bytes) -> UnsignedSpend: try: uncompressed_blob = zlib.decompress(blob) - return UnsignedSpend.from_program_bytes(uncompressed_blob) + return UnsignedSpend.from_bytes(uncompressed_blob) except Exception: - return UnsignedSpend.from_program_bytes(blob) + return UnsignedSpend.from_bytes(blob) def create_unsigned_spend_pipeline(