Skip to content

Commit

Permalink
fix service
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Grok committed Oct 22, 2024
1 parent 8d2dd2a commit 1f1dd1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/v2/api/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"cosmossdk.io/core/transaction"
serverv2 "cosmossdk.io/server/v2"
"github.com/cosmos/gogoproto/proto"
gogoproto "github.com/cosmos/gogoproto/types/any"
)

type MyServer struct {
Expand Down Expand Up @@ -32,8 +33,8 @@ func (m MyServer) Query(ctx context.Context, request *QueryRequest) (*QueryRespo
return nil, err
}

anyResp := &Any{
TypeUrl: proto.MessageName(queryResp),
anyResp := &gogoproto.Any{
TypeUrl: "/" + proto.MessageName(queryResp),
Value: respBytes,
}

Expand Down

0 comments on commit 1f1dd1b

Please sign in to comment.