From fdf4e2e8289261ef770b0b5dd6d16469f0afc2dd Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Fri, 15 Sep 2023 09:08:10 +0200 Subject: [PATCH] [service] add more comments for clean up of the api-client types --- service/src/parentchain_handler.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/service/src/parentchain_handler.rs b/service/src/parentchain_handler.rs index a8209b1aef..5ec3801df8 100644 --- a/service/src/parentchain_handler.rs +++ b/service/src/parentchain_handler.rs @@ -63,6 +63,8 @@ pub(crate) struct ParentchainHandler { parentchain_init_params: ParentchainInitParams, } +// #TODO: #1451: Reintroduce `ParentchainApi: ChainApi` once there is no trait bound conflict +// any more with the api-clients own trait definitions. impl ParentchainHandler where EnclaveApi: EnclaveBase, @@ -98,6 +100,7 @@ where ( id, GrandpaParams::new( + // #TODO: #1451: clean up type hacks Header::decode(&mut genesis_header.encode().as_slice())?, authority_list.into(), grandpa_proof, @@ -105,7 +108,14 @@ where ) .into() } else { - (id, SimpleParams::new(Header::decode(&mut genesis_header.encode().as_slice())?)).into() + ( + id, + SimpleParams::new( + // #TODO: #1451: clean up type hacks + Header::decode(&mut genesis_header.encode().as_slice())?, + ), + ) + .into() }; Ok(Self::new(parentchain_api, enclave_api, parentchain_init_params))