fix: fmt check
This commit is contained in:
parent
ad3c9f24b7
commit
b367ec2113
|
@ -72,16 +72,6 @@ pub enum Error {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Secp256k1(#[from] secp256k1::Error),
|
Secp256k1(#[from] secp256k1::Error),
|
||||||
#[cfg(target_family = "wasm")]
|
#[cfg(target_family = "wasm")]
|
||||||
#[error("{0}")]
|
#[error(transparent)]
|
||||||
K256Error(String),
|
Secp256k1(#[from] k256::ecdsa::Error),
|
||||||
// #[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))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,9 +111,9 @@ fn constant_data_constr() {
|
||||||
Constant::Data(PlutusData::Constr(Constr::<PlutusData> {
|
Constant::Data(PlutusData::Constr(Constr::<PlutusData> {
|
||||||
tag: 122,
|
tag: 122,
|
||||||
any_constructor: None,
|
any_constructor: None,
|
||||||
fields: vec![PlutusData::BigInt(
|
fields: vec![PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int(
|
||||||
pallas_primitives::alonzo::BigInt::Int(2.into()),
|
2.into(),
|
||||||
)],
|
))],
|
||||||
}))
|
}))
|
||||||
.into(),
|
.into(),
|
||||||
),
|
),
|
||||||
|
@ -159,9 +159,9 @@ fn constant_data_list() {
|
||||||
fn constant_data_int() {
|
fn constant_data_int() {
|
||||||
round_trip(
|
round_trip(
|
||||||
Term::<Name>::Constant(
|
Term::<Name>::Constant(
|
||||||
Constant::Data(PlutusData::BigInt(
|
Constant::Data(PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int(
|
||||||
pallas_primitives::alonzo::BigInt::Int(2.into()),
|
2.into(),
|
||||||
))
|
)))
|
||||||
.into(),
|
.into(),
|
||||||
),
|
),
|
||||||
"(con data (I 2))",
|
"(con data (I 2))",
|
||||||
|
|
Loading…
Reference in New Issue