From d256e5a56f267a74510b80604f819545a43d8401 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Tue, 3 Mar 2020 13:30:21 -0500 Subject: [PATCH] Address feedback --- simapp/codec/codec.pb.go | 141 ++++++++++++++++++++------------------- simapp/codec/codec.proto | 2 +- 2 files changed, 75 insertions(+), 68 deletions(-) diff --git a/simapp/codec/codec.pb.go b/simapp/codec/codec.pb.go index d0c66f7bdec9..1fff6fa8143e 100644 --- a/simapp/codec/codec.pb.go +++ b/simapp/codec/codec.pb.go @@ -360,7 +360,7 @@ var xxx_messageInfo_MsgSubmitEvidence proto.InternalMessageInfo // governance proposals. type MsgSubmitProposal struct { types4.MsgSubmitProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base"` - Content Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content"` + Content *Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` } func (m *MsgSubmitProposal) Reset() { *m = MsgSubmitProposal{} } @@ -585,62 +585,62 @@ func init() { func init() { proto.RegisterFile("simapp/codec/codec.proto", fileDescriptor_3c6d4085e4065f5a) } var fileDescriptor_3c6d4085e4065f5a = []byte{ - // 872 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x6f, 0xdc, 0x44, + // 878 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x41, 0x6f, 0xdc, 0x44, 0x14, 0xb6, 0xa9, 0x9b, 0xac, 0xa6, 0x05, 0xca, 0x88, 0x92, 0xd5, 0x82, 0x76, 0xdb, 0x14, 0x2a, - 0x28, 0x8a, 0xdd, 0x52, 0xa0, 0xe9, 0x5e, 0x4a, 0x77, 0x29, 0x5a, 0x24, 0x82, 0xa2, 0x0d, 0x70, - 0x40, 0x20, 0xcb, 0x3b,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 0xe8, 0x6b, 0xdf, 0xbd, 0xb7, 0x36, 0x65, 0xf5, 0xbf, 0xd3, 0x6c, 0x43, 0x8c, 0xf4, 0x87, + 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x70, 0x52, 0xf3, 0x25, 0x52, 0x09, 0x00, 0x00, } func (this *Supply) Equal(that interface{}) bool { @@ -800,7 +800,7 @@ func (this *MsgSubmitProposal) Equal(that interface{}) bool { if !this.MsgSubmitProposalBase.Equal(&that1.MsgSubmitProposalBase) { return false } - if !this.Content.Equal(&that1.Content) { + if !this.Content.Equal(that1.Content) { return false } return true @@ -1436,16 +1436,18 @@ func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size, err := m.Content.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Content != nil { + { + size, err := m.Content.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCodec(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintCodec(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x12 { size, err := m.MsgSubmitProposalBase.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -1793,8 +1795,10 @@ func (m *MsgSubmitProposal) Size() (n int) { _ = l l = m.MsgSubmitProposalBase.Size() n += 1 + l + sovCodec(uint64(l)) - l = m.Content.Size() - n += 1 + l + sovCodec(uint64(l)) + if m.Content != nil { + l = m.Content.Size() + n += 1 + l + sovCodec(uint64(l)) + } return n } @@ -2507,6 +2511,9 @@ func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } + if m.Content == nil { + m.Content = &Content{} + } if err := m.Content.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/simapp/codec/codec.proto b/simapp/codec/codec.proto index 27142c18be5d..620370d3429e 100644 --- a/simapp/codec/codec.proto +++ b/simapp/codec/codec.proto @@ -68,7 +68,7 @@ message MsgSubmitProposal { option (gogoproto.goproto_getters) = false; cosmos_sdk.x.gov.v1.MsgSubmitProposalBase base = 1 [(gogoproto.nullable) = false, (gogoproto.embed) = true]; - Content content = 2 [(gogoproto.nullable) = false]; + Content content = 2; } // Proposal defines the application-level concrete proposal type used in governance