Skip to content

Commit 304375c

Browse files
author
Hareem Adderley
committed
fix: update script_data_hash to pass in NonEmptyOrderedSet for datums
1 parent 6c87c32 commit 304375c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pycardano/txbuilder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,9 @@ def script_data_hash(self) -> Optional[ScriptDataHash]:
616616
)
617617
)
618618
return script_data_hash(
619-
self.redeemers(), list(self.datums.values()), CostModels(cost_models)
619+
self.redeemers(),
620+
NonEmptyOrderedSet(list(self.datums.values())),
621+
CostModels(cost_models),
620622
)
621623
else:
622624
return None

0 commit comments

Comments
 (0)