mint error

This commit is contained in:
thesimplekid
2023-06-13 23:01:03 -04:00
parent ebf06ebe0d
commit ca8d01be2a
3 changed files with 51 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
use std::string::FromUtf8Error;
use crate::types::MintError;
#[derive(Debug, thiserror::Error)]
pub enum Error {
/// Min req error
@@ -31,4 +33,6 @@ pub enum Error {
/// From elliptic curve
#[error("From Elliptic: {0}")]
EllipticError(#[from] k256::elliptic_curve::Error),
#[error("Mint Error: {0}")]
MintError(#[from] MintError),
}