Upgrade pallas to v0.0.29, and start support for simulating transactions carrying Plutus v3 scripts.

This commit is contained in:
KtorZ
2024-08-07 20:18:16 +02:00
parent 0dec4dc533
commit ff4a480242
14 changed files with 1180 additions and 1052 deletions

View File

@@ -1,7 +1,7 @@
use miette::IntoDiagnostic;
use owo_colors::{OwoColorize, Stream::Stderr};
use pallas_primitives::{
babbage::{Redeemer, TransactionInput, TransactionOutput},
conway::{Redeemer, TransactionInput, TransactionOutput},
Fragment,
};
use pallas_traverse::{Era, MultiEraTx};
@@ -101,7 +101,7 @@ pub fn exec(
})
.collect();
if let Some(tx_babbage) = tx.as_babbage() {
if let Some(tx_conway) = tx.as_conway() {
let slot_config = SlotConfig {
zero_time,
zero_slot,
@@ -120,7 +120,7 @@ pub fn exec(
};
let result = tx::eval_phase_two(
tx_babbage,
tx_conway,
&resolved_inputs,
None,
None,