Fix proto field number

This commit is contained in:
Alex Peters
2021-03-03 14:34:03 +01:00
parent 0358c1c07c
commit 4a3e12a1a0
2 changed files with 26 additions and 26 deletions

View File

@@ -171,7 +171,7 @@ type MsgInstantiateContractResponse struct {
// Address is the bech32 address of the new contract instance.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Data contains base64-encoded bytes to returned from the contract
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}
func (m *MsgInstantiateContractResponse) Reset() { *m = MsgInstantiateContractResponse{} }
@@ -552,7 +552,7 @@ func init() {
func init() { proto.RegisterFile("x/wasm/internal/types/tx.proto", fileDescriptor_5129e02f2349864e) }
var fileDescriptor_5129e02f2349864e = []byte{
// 809 bytes of a gzipped FileDescriptorProto
// 808 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xf3, 0x44,
0x14, 0x8d, 0xbf, 0xfc, 0x35, 0x37, 0xe1, 0x03, 0x99, 0xb6, 0x18, 0x83, 0x9c, 0x90, 0x82, 0x14,
0x04, 0xb5, 0xdb, 0x22, 0x60, 0x81, 0x58, 0x34, 0x81, 0x45, 0x17, 0xae, 0x90, 0x2b, 0x54, 0xa9,
@@ -583,27 +583,27 @@ var fileDescriptor_5129e02f2349864e = []byte{
0xb2, 0xa3, 0x52, 0x0b, 0x07, 0x8c, 0xd0, 0xfe, 0xc9, 0xfd, 0xa2, 0x5d, 0xfa, 0xe9, 0xb7, 0x76,
0xcf, 0x27, 0xe2, 0xab, 0xe9, 0xc8, 0x74, 0x59, 0x60, 0x25, 0xed, 0x17, 0xbf, 0x8e, 0xb9, 0xf7,
0x4d, 0xd2, 0x44, 0x32, 0x81, 0x3b, 0x31, 0x73, 0xf7, 0x12, 0x8c, 0xed, 0xf6, 0xa4,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 0x61, 0xd8, 0x21,
0xb8, 0x01, 0xdd, 0x25, 0x98, 0xd7, 0xb4, 0x2e, 0x34, 0xb3, 0xdd, 0xf9, 0x56, 0x3e, 0x43, 0x06,
0xa6, 0x1f, 0x17, 0x82, 0xa5, 0x22, 0x5f, 0x02, 0x64, 0xba, 0xf0, 0xcd, 0xfc, 0xe4, 0x35, 0x4a,
0x7f, 0xb7, 0x08, 0x6a, 0xa5, 0xd0, 0xbf, 0xbc, 0xff, 0xc3, 0x28, 0xdd, 0x2f, 0x0d, 0xe5, 0x61,
0x69, 0x28, 0xbf, 0x2f, 0x0d, 0xe5, 0x87, 0x47, 0xa3, 0xf4, 0xf0, 0x68, 0x94, 0x7e, 0x79, 0x34,
0x4a, 0x37, 0x27, 0x99, 0x93, 0x6c, 0xc0, 0x78, 0x70, 0x2d, 0xaf, 0x10, 0x92, 0xd5, 0xb3, 0xe6,
0xc9, 0xfb, 0xe9, 0x85, 0x62, 0x54, 0x8b, 0xee, 0x12, 0xef, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff,
0x96, 0x93, 0x22, 0x47, 0xdd, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1064,7 +1064,7 @@ func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int,
copy(dAtA[i:], m.Data)
i = encodeVarintTx(dAtA, i, uint64(len(m.Data)))
i--
dAtA[i] = 0x1a
dAtA[i] = 0x12
}
if len(m.Address) > 0 {
i -= len(m.Address)
@@ -2200,7 +2200,7 @@ func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error {
}
m.Address = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
}

View File

@@ -64,7 +64,7 @@ message MsgInstantiateContractResponse {
// Address is the bech32 address of the new contract instance.
string address = 1;
// Data contains base64-encoded bytes to returned from the contract
bytes data = 3;
bytes data = 2;
}
// MsgExecuteContract submits the given message data to a smart contract