Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
fix grpc crash
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Sep 20, 2022
1 parent 1726daf commit 9487a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/evm/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (k Keeper) ValidatorAccount(c context.Context, req *types.QueryValidatorAcc

validator, found := k.stakingKeeper.GetValidatorByConsAddr(ctx, consAddr)
if !found {
return nil, nil
return nil, fmt.Errorf("validator not found for %s", consAddr.String())
}

accAddr := sdk.AccAddress(validator.GetOperator())
Expand Down

0 comments on commit 9487a0d

Please sign in to comment.