Skip to content

Commit

Permalink
fix: actually unwrap lc
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig committed Jul 14, 2024
1 parent 42f1d0b commit a37e127
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn init_client<R: LightClientResolver, S: KVStore, K: Signer>(
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();
Expand Down

0 comments on commit a37e127

Please sign in to comment.