Skip to content

Commit

Permalink
Merge pull request #950 from hadelive/k256-error
Browse files Browse the repository at this point in the history
Fix k256 error does not implement clone
  • Loading branch information
KtorZ authored May 30, 2024
2 parents 4c1bee5 + 740e140 commit 28515e7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crates/uplc/src/machine/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ pub enum Error {
#[error(transparent)]
Secp256k1(#[from] secp256k1::Error),
#[cfg(target_family = "wasm")]
#[error(transparent)]
Secp256k1(#[from] k256::ecdsa::Error),
#[error("{0}")]
K256Error(String),
}

#[cfg(target_family = "wasm")]
impl From<k256::ecdsa::Error> for Error {
fn from(error: k256::ecdsa::Error) -> Error {
Error::K256Error(format!("K256 error: {}", error))
}
}

0 comments on commit 28515e7

Please sign in to comment.