Linux下编译Cosmos系Rollkit区块链时遇Proto编译错误求助
编译基于Cosmos的Rollkit区块链时proto编译错误求助
错误信息
✘ File: /root/minibar/proto/minibar/minibar/query.proto: :21:3: found "message" but expected [service comment|rpc]
对应的query.proto文件内容
syntax = "proto3"; package minibar.minibar; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "minibar/minibar/params.proto"; option go_package = "minibar/x/minibar/types"; // Query defines the gRPC querier service. service Query { // Parameters queries the parameters of the module. rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/minibar/minibar/params"; } // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { // params holds all the parameters of this module. Params params = 1 [(gogoproto.nullable) = false]; } message QueryUnitsRequest {} message QueryUnitsResponse { string alcotype = 1; string country = 2; string name = 3; string volume = 4; }
目前正在学习相关技术,编译基于Cosmos的Rollkit区块链时遇到上述错误,尝试多种方法仍无法解决,恳请各位提供帮助。
内容的提问来源于stack exchange,提问作者crptcpchk
相关产品推荐
相关产品推荐

