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