Skip to content

Commit

Permalink
Make context enum non exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Nov 25, 2024
1 parent 0a16030 commit cbc0246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/shared/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ impl QuoteInputData {

/// An indicator as to the context in which a quote is intended to be used
#[derive(Clone, Encode, Decode, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum QuoteContext {
/// To be used in the `validate` extrinsic
Validate,
Expand Down
2 changes: 1 addition & 1 deletion crates/threshold-signature-server/src/attestation/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub async fn attest(
.ok_or_else(|| AttestationErr::Unexpected)?
};

// TODO #1181 since this endpoint is currently only used in tests we dont know what the context should be
// TODO (#1181): since this endpoint is currently only used in tests we don't know what the context should be
let context = QuoteContext::Validate;

let quote = create_quote(nonce, &signer, &x25519_secret, context).await?;
Expand Down

0 comments on commit cbc0246

Please sign in to comment.