From 75ea2cbf150ef96d74283d82229688b30596584f Mon Sep 17 00:00:00 2001 From: Greg Hill Date: Thu, 3 Feb 2022 15:09:08 +0000 Subject: [PATCH] remove unused PalletError struct (#425) Signed-off-by: Gregory Hill --- subxt/src/error.rs | 12 ------------ subxt/src/lib.rs | 1 - 2 files changed, 13 deletions(-) diff --git a/subxt/src/error.rs b/subxt/src/error.rs index 650f091536..59a0bdf731 100644 --- a/subxt/src/error.rs +++ b/subxt/src/error.rs @@ -155,18 +155,6 @@ impl RuntimeError { } } -/// 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, -} - /// Transaction error. #[derive(Clone, Debug, Eq, thiserror::Error, PartialEq)] pub enum TransactionError { diff --git a/subxt/src/lib.rs b/subxt/src/lib.rs index 723280f501..e4e5668fc6 100644 --- a/subxt/src/lib.rs +++ b/subxt/src/lib.rs @@ -81,7 +81,6 @@ pub use crate::{ error::{ BasicError, Error, - PalletError, RuntimeError, TransactionError, },