Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Mar 4, 2024
1 parent db8ff3d commit 4cbe340
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pycardano/txbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ def add_script_input(
f"Datum hash in transaction output is {utxo.output.datum_hash}, "
f"but actual datum hash from input datum is {datum_hash(datum)}."
)
if datum is not None and utxo.output.datum_hash is None and utxo.output.datum is not None:
if (
datum is not None
and utxo.output.datum_hash is None
and utxo.output.datum is not None
):
raise InvalidArgumentException(
f"Inline Datum found in transaction output {utxo.input}, "
"so attaching a Datum to the transaction input manually is not allowed."
Expand Down

0 comments on commit 4cbe340

Please sign in to comment.