Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 14, 2024
1 parent 5cf2aa2 commit afdcb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/api/src/constraints/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ where
// - If there are no delegations, only the validator pubkey can submit constraints
// - If there are delegations, only delegatees can submit constraints
if (delegatees.is_empty() && constraint.message.pubkey != validator_pubkey) ||
(!delegates.is_empty() && !delegatees.contains(&constraint.message.pubkey))
(!delegatees.is_empty() && !delegatees.contains(&constraint.message.pubkey))
{
error!(request_id = %request_id, pubkey = %constraint.message.pubkey, "Pubkey unauthorized");
return Err(ConstraintsApiError::PubkeyNotAuthorized(constraint.message.pubkey))
Expand Down

0 comments on commit afdcb8b

Please sign in to comment.