Commit 99bbf74d authored by Cecile Tonglet's avatar Cecile Tonglet
Browse files

WIP

Forked at: e9164236
Parent branch: origin/rococo-branch
parent f60375c3
......@@ -118,7 +118,7 @@ pub trait BuildParachainContext {
type ParachainContext: self::ParachainContext;
/// Build the `ParachainContext`.
fn build<SP, Client, Block, Backend>(
fn build<SP, Client, Backend>(
self,
client: Arc<Client>,
spawner: SP,
......@@ -126,7 +126,6 @@ pub trait BuildParachainContext {
) -> Result<Self::ParachainContext, ()>
where
SP: SpawnNamed + Clone + Send + Sync + 'static,
Block: BlockT,
Backend: BackendT<Block>,
Backend::State: sp_api::StateBackend<BlakeTwo256>,
Client: polkadot_service::AbstractClient<Block, Backend>,
......
......@@ -95,6 +95,7 @@ pub struct TestClient(Arc<FullClient<polkadot_test_runtime::RuntimeApi, Polkadot
// TODO: that comes from service, make it public?
type FullBackend = service::TFullBackend<Block>;
// TODO: maybe implementable for any Arc<TFullClient<...>>?
impl YaExecuteWithClient for TestClient {
fn execute_with<T: ExecuteWithClient>(&self, t: T) -> T::Output {
T::execute_with_client::<_, _, FullBackend>(t, self.0.clone())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment