Skip to content

Commit 4840584

Browse files
committed
fix test
1 parent 03b91e6 commit 4840584

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rust/src/tx_builder.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6079,9 +6079,12 @@ mod tests {
60796079
let res2 = tx_builder.build_tx();
60806080
assert!(res2.is_ok());
60816081

6082+
let mut used_langs = Languages::new();
6083+
used_langs.add(Language::new_plutus_v1());
6084+
60826085
let data_hash = hash_script_data(
60836086
&Redeemers::from(vec![redeemer.clone()]),
6084-
&TxBuilderConstants::plutus_default_cost_models(),
6087+
&TxBuilderConstants::plutus_default_cost_models().retain_language_versions(&used_langs),
60856088
Some(PlutusList::from(vec![datum])),
60866089
);
60876090
assert_eq!(tx_builder.script_data_hash.unwrap(), data_hash);

0 commit comments

Comments
 (0)