fix(txbuilder): sign transactions using Conway era (#531)

This commit is contained in:
Santiago Carmuega 2024-10-24 16:17:34 -03:00 committed by GitHub
parent a29a6cf50f
commit 3adc16b798
5 changed files with 45 additions and 21 deletions

View file

@ -39,6 +39,7 @@ impl<C> Encode<C> for LanguageView {
}
}
#[derive(Debug, Clone)]
pub struct ScriptData {
pub redeemers: Redeemers,
pub datums: Option<Vec<PlutusData>>,
@ -112,6 +113,10 @@ mod tests {
hex::decode(include_str!("../../test_data/conway2.tx")).unwrap(),
LanguageView(0, COST_MODEL_PLUTUS_V1.clone()),
),
(
hex::decode(include_str!("../../test_data/hydra-init.tx")).unwrap(),
LanguageView(1, COST_MODEL_PLUTUS_V2.clone()),
),
]
});