mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +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:
@@ -17,7 +17,7 @@
|
||||
|
||||
//! Smaller traits used in FRAME which don't need their own file.
|
||||
|
||||
use sp_runtime::traits::{StoredMapError, Block as BlockT};
|
||||
use sp_runtime::{traits::Block as BlockT, DispatchError};
|
||||
use sp_arithmetic::traits::AtLeast32Bit;
|
||||
use crate::dispatch::Parameter;
|
||||
|
||||
@@ -157,10 +157,10 @@ pub trait OnKilledAccount<AccountId> {
|
||||
/// A simple, generic one-parameter event notifier/handler.
|
||||
pub trait HandleLifetime<T> {
|
||||
/// An account was created.
|
||||
fn created(_t: &T) -> Result<(), StoredMapError> { Ok(()) }
|
||||
fn created(_t: &T) -> Result<(), DispatchError> { Ok(()) }
|
||||
|
||||
/// An account was killed.
|
||||
fn killed(_t: &T) -> Result<(), StoredMapError> { Ok(()) }
|
||||
fn killed(_t: &T) -> Result<(), DispatchError> { Ok(()) }
|
||||
}
|
||||
|
||||
impl<T> HandleLifetime<T> for () {}
|
||||
|
||||
Reference in New Issue
Block a user