diff --git a/crates/phactory/src/contracts/pink.rs b/crates/phactory/src/contracts/pink.rs index bf24ceefc..8145ad45e 100644 --- a/crates/phactory/src/contracts/pink.rs +++ b/crates/phactory/src/contracts/pink.rs @@ -274,7 +274,8 @@ pub(crate) mod context { } fn worker_sgx_quote(&self) -> Option { - if self.attestation_provider.is_none() { + use AttestationProvider::*; + let Some(Ias | Dcap) = self.attestation_provider else { return None; }; sgx_attestation::gramine::create_quote(&self.worker_pubkey())