fix: fmt check
This commit is contained in:
parent
ad3c9f24b7
commit
b367ec2113
|
@ -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),
|
||||
}
|
||||
|
|
|
@ -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))",
|
||||
|
|
Loading…
Reference in New Issue