mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 13:37:22 +00:00
Remove IncRefError, DecRefError and StoredMapError (#9384)
All of them are a subset of `DispatchError` anyway, no need to have special errors IMHO.
This commit is contained in:
@@ -516,15 +516,6 @@ impl From<crate::traits::BadOrigin> for DispatchError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<crate::traits::StoredMapError> for DispatchError {
|
||||
fn from(e: crate::traits::StoredMapError) -> Self {
|
||||
match e {
|
||||
crate::traits::StoredMapError::ConsumerRemaining => Self::ConsumerRemaining,
|
||||
crate::traits::StoredMapError::NoProviders => Self::NoProviders,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Description of what went wrong when trying to complete an operation on a token.
|
||||
#[derive(Eq, PartialEq, Clone, Copy, Encode, Decode, Debug)]
|
||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
||||
|
||||
Reference in New Issue
Block a user