We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b91e6 commit 4840584Copy full SHA for 4840584
rust/src/tx_builder.rs
@@ -6079,9 +6079,12 @@ mod tests {
6079
let res2 = tx_builder.build_tx();
6080
assert!(res2.is_ok());
6081
6082
+ let mut used_langs = Languages::new();
6083
+ used_langs.add(Language::new_plutus_v1());
6084
+
6085
let data_hash = hash_script_data(
6086
&Redeemers::from(vec![redeemer.clone()]),
- &TxBuilderConstants::plutus_default_cost_models(),
6087
+ &TxBuilderConstants::plutus_default_cost_models().retain_language_versions(&used_langs),
6088
Some(PlutusList::from(vec![datum])),
6089
);
6090
assert_eq!(tx_builder.script_data_hash.unwrap(), data_hash);
0 commit comments