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,
req: Request<Pubkey>,
) -> Result<Response<InspectOperatorResp>, Status> {
let req = check_sig_from_req(req)?;
match self.data.inspect_operator(&req.pubkey) {
match self.data.inspect_operator(&req.into_inner().pubkey) {
Some(op) => Ok(Response::new(op.into())),
None => Err(Status::not_found(
"The wallet you specified is not an operator",