Skip to content

Commit

Permalink
remove unused PalletError struct (paritytech#425)
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
  • Loading branch information
gregdhill authored Feb 3, 2022
1 parent 702f4c8 commit 75ea2cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions subxt/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,6 @@ impl<E> RuntimeError<E> {
}
}

/// Module error.
#[derive(Clone, Debug, Eq, thiserror::Error, PartialEq)]
#[error("{error} from {pallet}")]
pub struct PalletError {
/// The module where the error originated.
pub pallet: String,
/// The actual error code.
pub error: String,
/// The error description.
pub description: Vec<String>,
}

/// Transaction error.
#[derive(Clone, Debug, Eq, thiserror::Error, PartialEq)]
pub enum TransactionError {
Expand Down
1 change: 0 additions & 1 deletion subxt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pub use crate::{
error::{
BasicError,
Error,
PalletError,
RuntimeError,
TransactionError,
},
Expand Down

0 comments on commit 75ea2cb

Please sign in to comment.