From afdcb8b724f7390dbb0196ff368fa9a3059b9355 Mon Sep 17 00:00:00 2001 From: nicolas <48695862+merklefruit@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:18:19 +0200 Subject: [PATCH] chore: typo --- crates/api/src/constraints/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api/src/constraints/api.rs b/crates/api/src/constraints/api.rs index 5a357b33..0f4d33ca 100644 --- a/crates/api/src/constraints/api.rs +++ b/crates/api/src/constraints/api.rs @@ -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))