Skip to content

Commit

Permalink
derive from
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbientTea committed Aug 23, 2024
1 parent 4f30718 commit b7b900f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions primitives/native-token-management/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,11 @@ mod inherent_provider {
#[derive(thiserror::Error, sp_runtime::RuntimeDebug)]
pub enum IDPCreationError {
#[error("Failed to read native token data from data source: {0:?}")]
DataSourceError(DataSourceError),
DataSourceError(#[from] DataSourceError),
#[error("Failed to retrieve main chain scripts from the runtime: {0:?}")]
GetMainChainScriptsError(ApiError),
}

impl From<DataSourceError> for IDPCreationError {
fn from(err: DataSourceError) -> Self {
Self::DataSourceError(err)
}
}

impl NativeTokenManagementInherentDataProvider {
pub async fn new<Block, C>(
client: Arc<C>,
Expand Down

0 comments on commit b7b900f

Please sign in to comment.