diff --git a/enclave-modules/ecall-handler/src/light_client/init_client.rs b/enclave-modules/ecall-handler/src/light_client/init_client.rs index 554b8d2c..86e6e955 100644 --- a/enclave-modules/ecall-handler/src/light_client/init_client.rs +++ b/enclave-modules/ecall-handler/src/light_client/init_client.rs @@ -18,7 +18,7 @@ pub fn init_client( let any_client_state: Any = input.any_client_state.into(); let any_consensus_state: Any = input.any_consensus_state.into(); let lc = match ctx.get_light_client(&any_client_state.type_url) { - Some(lc) => lc, + Some(lc) => lc.unwrap(), None => return Err(Error::invalid_argument(any_client_state.type_url.clone())), }; let ek = ctx.get_enclave_key();