Skip to content

Commit

Permalink
Update x/cronos/keeper/grpc_query.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Nguy <81727899+thomas-nguy@users.noreply.github.com>
  • Loading branch information
yihuang and thomas-nguy authored Sep 10, 2021
1 parent f56221f commit addd2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/cronos/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (k Keeper) DenomByContract(goCtx context.Context, req *types.DenomByContrac
ctx := sdk.UnwrapSDKContext(goCtx)
denom, found := k.GetDenomByContract(ctx, common.HexToAddress(req.Contract))
if !found {
return nil, fmt.Errorf("denom for contract %s is not found", req.Contract)
return nil, fmt.Errorf("coin denom for contract %s not found", req.Contract)
}
return &types.DenomByContractResponse{
Denom: denom,
Expand Down

0 comments on commit addd2b9

Please sign in to comment.