Parachain Template: Prune AuxStore bound and corresponding crate dependency (#2303)

This small PR removes an unnecessary trait bound to the `AuxStore` trait
from the Parachain template's `rpc.rs` file.

With that bound removed, the entire dependency on `sc-client-api` can
also be removed.

---------

Co-authored-by: Joshy Orndorff <git-user-email.h0ly5@simplelogin.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Joshy Orndorff
2023-11-29 15:27:04 -05:00
committed by GitHub
parent c68ce6e147
commit f69069bd42
@@ -9,7 +9,6 @@ use std::sync::Arc;
use parachain_template_runtime::{opaque::Block, AccountId, Balance, Nonce}; use parachain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
use sc_client_api::AuxStore;
pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor}; pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor};
use sc_transaction_pool_api::TransactionPool; use sc_transaction_pool_api::TransactionPool;
use sp_api::ProvideRuntimeApi; use sp_api::ProvideRuntimeApi;
@@ -36,7 +35,6 @@ pub fn create_full<C, P>(
where where
C: ProvideRuntimeApi<Block> C: ProvideRuntimeApi<Block>
+ HeaderBackend<Block> + HeaderBackend<Block>
+ AuxStore
+ HeaderMetadata<Block, Error = BlockChainError> + HeaderMetadata<Block, Error = BlockChainError>
+ Send + Send
+ Sync + Sync