Skip to content

Commit

Permalink
Fixing A20 assertion (identity worker crashing) (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
silva-fj authored Aug 30, 2024
1 parent 2eea020 commit 6beb690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tee-worker/litentry/core/assertion-build/src/a20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn build(
Identity::Substrate(account) => account_id_to_string(&account),
Identity::Evm(account) => account_id_to_string(&account),
Identity::Bitcoin(account) => account_id_to_string(&account),
_ => unreachable!(),
_ => return Err(Error::RequestVCFailed(Assertion::A20, ErrorDetail::NoEligibleIdentity)),
};
debug!("Assertion A20 build, who: {:?}", who);

Expand Down
2 changes: 1 addition & 1 deletion tee-worker/litentry/core/vc-task/receiver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ where

// The `call` should always be `TrustedCall:request_vc`. Once decided to remove 'request_vc', this part can be refactored regarding the parameters.
if let TrustedCall::request_vc(signer, who, assertion, maybe_key, req_ext_hash) = call {
info!(
debug!(
"Processing vc request for {}, assertion: {:?}",
who.to_did().unwrap_or_default(),
assertion
Expand Down

0 comments on commit 6beb690

Please sign in to comment.