From e1c636f48e828379ed7ceff223d3ad00cecbc225 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sun, 7 May 2023 11:30:08 -0700 Subject: [PATCH] Datum hash was assigned to the wrong field when deserializing pre-alonzo tx (#233) --- pycardano/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardano/transaction.py b/pycardano/transaction.py index a5400dfd..fa324059 100644 --- a/pycardano/transaction.py +++ b/pycardano/transaction.py @@ -436,7 +436,7 @@ def from_primitive( ) -> TransactionOutput: if isinstance(value, list): output = _TransactionOutputLegacy.from_primitive(value) - return cls(output.address, output.amount, datum=output.datum_hash) + return cls(output.address, output.amount, datum_hash=output.datum_hash) else: output = _TransactionOutputPostAlonzo.from_primitive(value) datum = output.datum.datum if output.datum else None