Compare commits

..

1 Commits

Author SHA1 Message Date
b5e5aa838a
add support for operators 2025-02-13 22:44:20 +02:00

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