fix(txbuilder): sign transactions using Conway era (#531)
This commit is contained in:
parent
a29a6cf50f
commit
3adc16b798
5 changed files with 45 additions and 21 deletions
|
|
@ -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()),
|
||||
),
|
||||
]
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue