Compare commits

..

1 Commits

Author SHA1 Message Date
b884506ac3
add support for operators 2025-02-14 03:28:32 +02:00

@ -343,8 +343,7 @@ impl BrainCli for BrainCliMock {
&self, &self,
req: Request<Pubkey>, req: Request<Pubkey>,
) -> Result<Response<InspectOperatorResp>, Status> { ) -> Result<Response<InspectOperatorResp>, Status> {
let req = check_sig_from_req(req)?; match self.data.inspect_operator(&req.into_inner().pubkey) {
match self.data.inspect_operator(&req.pubkey) {
Some(op) => Ok(Response::new(op.into())), Some(op) => Ok(Response::new(op.into())),
None => Err(Status::not_found( None => Err(Status::not_found(
"The wallet you specified is not an operator", "The wallet you specified is not an operator",