fix: fmt check

This commit is contained in:
hade 2024-05-30 16:08:03 +07:00
parent ad3c9f24b7
commit b367ec2113
No known key found for this signature in database
GPG Key ID: 706945D35C5E919B
2 changed files with 8 additions and 18 deletions

View File

@ -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<k256::ecdsa::Error> for Error {
fn from(error: k256::ecdsa::Error) -> Error {
Error::K256Error(format!("k256 error: {}", error))
}
#[error(transparent)]
Secp256k1(#[from] k256::ecdsa::Error),
}

View File

@ -111,9 +111,9 @@ fn constant_data_constr() {
Constant::Data(PlutusData::Constr(Constr::<PlutusData> {
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::<Name>::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))",