Skip to content

Commit

Permalink
Datum hash was assigned to the wrong field when deserializing pre-alo…
Browse files Browse the repository at this point in the history
…nzo tx (#233)
  • Loading branch information
cffls authored May 7, 2023
1 parent eaadc38 commit e1c636f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1c636f

Please sign in to comment.