diff --git a/crates/uplc/src/machine/error.rs b/crates/uplc/src/machine/error.rs index 2168532f..c25086cf 100644 --- a/crates/uplc/src/machine/error.rs +++ b/crates/uplc/src/machine/error.rs @@ -72,16 +72,6 @@ pub enum Error { #[error(transparent)] Secp256k1(#[from] secp256k1::Error), #[cfg(target_family = "wasm")] - #[error("{0}")] - K256Error(String), - // #[cfg(target_family = "wasm")] - // #[error("k256 error")] - // Secp256k1(#[from] k256::ecdsa::Error), -} - -#[cfg(target_family = "wasm")] -impl From for Error { - fn from(error: k256::ecdsa::Error) -> Error { - Error::K256Error(format!("k256 error: {}", error)) - } + #[error(transparent)] + Secp256k1(#[from] k256::ecdsa::Error), } diff --git a/crates/uplc/tests/pretty_tests.rs b/crates/uplc/tests/pretty_tests.rs index edb6a908..c1d72fa5 100644 --- a/crates/uplc/tests/pretty_tests.rs +++ b/crates/uplc/tests/pretty_tests.rs @@ -111,9 +111,9 @@ fn constant_data_constr() { Constant::Data(PlutusData::Constr(Constr:: { tag: 122, any_constructor: None, - fields: vec![PlutusData::BigInt( - pallas_primitives::alonzo::BigInt::Int(2.into()), - )], + fields: vec![PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int( + 2.into(), + ))], })) .into(), ), @@ -159,9 +159,9 @@ fn constant_data_list() { fn constant_data_int() { round_trip( Term::::Constant( - Constant::Data(PlutusData::BigInt( - pallas_primitives::alonzo::BigInt::Int(2.into()), - )) + Constant::Data(PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int( + 2.into(), + ))) .into(), ), "(con data (I 2))",