Used reserved keyword in protobuf

This commit is contained in:
Ethan Frey
2021-07-28 11:26:51 +02:00
parent 2387a48727
commit 18741cb19a
9 changed files with 245 additions and 246 deletions

View File

@@ -20,8 +20,8 @@ message StoreCodeProposal {
string run_as = 3;
// WASMByteCode can be raw or gzip compressed
bytes wasm_byte_code = 4 [ (gogoproto.customname) = "WASMByteCode" ];
// 5 and 6 intentionally left empty (used in v1beta1)
// Used in v1beta1
reserved 5, 6;
// InstantiatePermission to apply on contract creation, optional
AccessConfig instantiate_permission = 7;
}

View File

@@ -175,7 +175,8 @@ message CodeInfoResponse {
bytes data_hash = 3
[ (gogoproto.casttype) =
"github.com/tendermint/tendermint/libs/bytes.HexBytes" ];
// 4 and 5 intentionally left empty (used in v1beta1)
// Used in v1beta1
reserved 4, 5;
}
// QueryCodeResponse is the response type for the Query/Code RPC method

View File

@@ -31,8 +31,8 @@ message MsgStoreCode {
string sender = 1;
// WASMByteCode can be raw or gzip compressed
bytes wasm_byte_code = 2 [ (gogoproto.customname) = "WASMByteCode" ];
// 3 and 4 intentionally left empty (used in v1beta1)
// Used in v1beta1
reserved 3, 4;
// InstantiatePermission access control to apply on contract creation,
// optional
AccessConfig instantiate_permission = 5;

View File

@@ -59,8 +59,8 @@ message CodeInfo {
bytes code_hash = 1;
// Creator address who initially stored the code
string creator = 2;
// 3 and 4 intentionally left empty (used in v1beta1)
// Used in v1beta1
reserved 3, 4;
// InstantiateConfig access control to apply on contract creation, optional
AccessConfig instantiate_config = 5 [ (gogoproto.nullable) = false ];
}