diff --git a/crates/aiken/src/cmd/uplc/eval.rs b/crates/aiken/src/cmd/uplc/eval.rs index 5b70d166..7453e472 100644 --- a/crates/aiken/src/cmd/uplc/eval.rs +++ b/crates/aiken/src/cmd/uplc/eval.rs @@ -18,7 +18,7 @@ pub struct Args { #[clap(short, long)] cbor: bool, - /// Arguments to pass to the uplc program + /// Arguments to pass to the UPLC program args: Vec, } @@ -54,10 +54,9 @@ pub fn exec( }; for arg in args { - let term: Term = parser::term(&arg) - .into_diagnostic()? - .try_into() - .into_diagnostic()?; + let term = parser::term(&arg).into_diagnostic()?; + + let term = Term::::try_from(term).into_diagnostic()?; program = program.apply_term(&term); } @@ -71,7 +70,7 @@ pub fn exec( match eval_result.result() { Ok(term) => { - let term: Term = term.try_into().into_diagnostic()?; + let term = Term::::try_from(term).into_diagnostic()?; let output = json!({ "result": term.to_pretty(),