Compare commits
1 Commits
b884506ac3
...
b5e5aa838a
Author | SHA1 | Date | |
---|---|---|---|
b5e5aa838a |
@ -343,7 +343,8 @@ impl BrainCli for BrainCliMock {
|
|||||||
&self,
|
&self,
|
||||||
req: Request<Pubkey>,
|
req: Request<Pubkey>,
|
||||||
) -> Result<Response<InspectOperatorResp>, Status> {
|
) -> 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())),
|
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user