refactor: bump gogoproto (#19869)

This commit is contained in:
Ezequiel Raynaudo
2024-03-28 19:53:21 +00:00
committed by GitHub
parent d54e940d50
commit b9c8d60ea0
76 changed files with 494 additions and 1464 deletions
@@ -3,4 +3,4 @@ plugins:
- name: gocosmos
out: ../..
opt:
- plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types
- plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any
+4 -4
View File
@@ -43,14 +43,14 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
func NewTestAmino() *amino.Codec {
cdc := amino.NewCodec()
cdc.RegisterInterface((*Animal)(nil), nil)
cdc.RegisterConcrete(&Dog{}, "testpb/Dog", nil)
cdc.RegisterConcrete(&Cat{}, "testpb/Cat", nil)
cdc.RegisterConcrete(&Dog{}, "test/Dog", nil)
cdc.RegisterConcrete(&Cat{}, "test/Cat", nil)
cdc.RegisterInterface((*HasAnimalI)(nil), nil)
cdc.RegisterConcrete(&HasAnimal{}, "testpb/HasAnimal", nil)
cdc.RegisterConcrete(&HasAnimal{}, "test/HasAnimal", nil)
cdc.RegisterInterface((*HasHasAnimalI)(nil), nil)
cdc.RegisterConcrete(&HasHasAnimal{}, "testpb/HasHasAnimal", nil)
cdc.RegisterConcrete(&HasHasAnimal{}, "test/HasHasAnimal", nil)
return cdc
}
+3 -2
View File
@@ -3,6 +3,7 @@ package testdata
import (
"context"
"fmt"
"github.com/cosmos/gogoproto/types/any/test"
"testing"
"github.com/cosmos/gogoproto/proto"
@@ -22,7 +23,7 @@ type QueryImpl struct{}
var _ QueryServer = QueryImpl{}
func (e QueryImpl) TestAny(_ context.Context, request *TestAnyRequest) (*TestAnyResponse, error) {
animal, ok := request.AnyAnimal.GetCachedValue().(Animal)
animal, ok := request.AnyAnimal.GetCachedValue().(test.Animal)
if !ok {
return nil, fmt.Errorf("expected Animal")
}
@@ -50,7 +51,7 @@ func (e QueryImpl) SayHello(_ context.Context, request *SayHelloRequest) (*SayHe
var _ types.UnpackInterfacesMessage = &TestAnyRequest{}
func (m *TestAnyRequest) UnpackInterfaces(unpacker types.AnyUnpacker) error {
var animal Animal
var animal test.Animal
return unpacker.UnpackAny(m.AnyAnimal, &animal)
}
+4 -4
View File
@@ -6,9 +6,9 @@ package testdata
import (
context "context"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
grpc1 "github.com/cosmos/gogoproto/grpc"
proto "github.com/cosmos/gogoproto/proto"
any "github.com/cosmos/gogoproto/types/any"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@@ -205,7 +205,7 @@ func (m *SayHelloResponse) GetGreeting() string {
}
type TestAnyRequest struct {
AnyAnimal *types.Any `protobuf:"bytes,1,opt,name=any_animal,json=anyAnimal,proto3" json:"any_animal,omitempty"`
AnyAnimal *any.Any `protobuf:"bytes,1,opt,name=any_animal,json=anyAnimal,proto3" json:"any_animal,omitempty"`
}
func (m *TestAnyRequest) Reset() { *m = TestAnyRequest{} }
@@ -241,7 +241,7 @@ func (m *TestAnyRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_TestAnyRequest proto.InternalMessageInfo
func (m *TestAnyRequest) GetAnyAnimal() *types.Any {
func (m *TestAnyRequest) GetAnyAnimal() *any.Any {
if m != nil {
return m.AnyAnimal
}
@@ -1154,7 +1154,7 @@ func (m *TestAnyRequest) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.AnyAnimal == nil {
m.AnyAnimal = &types.Any{}
m.AnyAnimal = &any.Any{}
}
if err := m.AnyAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
+11 -11
View File
@@ -5,9 +5,9 @@ package testdata
import (
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
any "github.com/cosmos/gogoproto/types/any"
io "io"
math "math"
math_bits "math/bits"
@@ -181,8 +181,8 @@ func (m *Bird) GetColor() int32 {
}
type HasAnimal struct {
Animal *types.Any `protobuf:"bytes,1,opt,name=animal,proto3" json:"animal,omitempty"`
X int64 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
Animal *any.Any `protobuf:"bytes,1,opt,name=animal,proto3" json:"animal,omitempty"`
X int64 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"`
}
func (m *HasAnimal) Reset() { *m = HasAnimal{} }
@@ -218,7 +218,7 @@ func (m *HasAnimal) XXX_DiscardUnknown() {
var xxx_messageInfo_HasAnimal proto.InternalMessageInfo
func (m *HasAnimal) GetAnimal() *types.Any {
func (m *HasAnimal) GetAnimal() *any.Any {
if m != nil {
return m.Animal
}
@@ -233,7 +233,7 @@ func (m *HasAnimal) GetX() int64 {
}
type HasHasAnimal struct {
HasAnimal *types.Any `protobuf:"bytes,1,opt,name=has_animal,json=hasAnimal,proto3" json:"has_animal,omitempty"`
HasAnimal *any.Any `protobuf:"bytes,1,opt,name=has_animal,json=hasAnimal,proto3" json:"has_animal,omitempty"`
}
func (m *HasHasAnimal) Reset() { *m = HasHasAnimal{} }
@@ -269,7 +269,7 @@ func (m *HasHasAnimal) XXX_DiscardUnknown() {
var xxx_messageInfo_HasHasAnimal proto.InternalMessageInfo
func (m *HasHasAnimal) GetHasAnimal() *types.Any {
func (m *HasHasAnimal) GetHasAnimal() *any.Any {
if m != nil {
return m.HasAnimal
}
@@ -277,7 +277,7 @@ func (m *HasHasAnimal) GetHasAnimal() *types.Any {
}
type HasHasHasAnimal struct {
HasHasAnimal *types.Any `protobuf:"bytes,1,opt,name=has_has_animal,json=hasHasAnimal,proto3" json:"has_has_animal,omitempty"`
HasHasAnimal *any.Any `protobuf:"bytes,1,opt,name=has_has_animal,json=hasHasAnimal,proto3" json:"has_has_animal,omitempty"`
}
func (m *HasHasHasAnimal) Reset() { *m = HasHasHasAnimal{} }
@@ -313,7 +313,7 @@ func (m *HasHasHasAnimal) XXX_DiscardUnknown() {
var xxx_messageInfo_HasHasHasAnimal proto.InternalMessageInfo
func (m *HasHasHasAnimal) GetHasHasAnimal() *types.Any {
func (m *HasHasHasAnimal) GetHasHasAnimal() *any.Any {
if m != nil {
return m.HasHasAnimal
}
@@ -1322,7 +1322,7 @@ func (m *HasAnimal) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.Animal == nil {
m.Animal = &types.Any{}
m.Animal = &any.Any{}
}
if err := m.Animal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -1427,7 +1427,7 @@ func (m *HasHasAnimal) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.HasAnimal == nil {
m.HasAnimal = &types.Any{}
m.HasAnimal = &any.Any{}
}
if err := m.HasAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -1513,7 +1513,7 @@ func (m *HasHasHasAnimal) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.HasHasAnimal == nil {
m.HasHasAnimal = &types.Any{}
m.HasHasAnimal = &any.Any{}
}
if err := m.HasHasAnimal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
+42 -42
View File
@@ -6,10 +6,10 @@ package testdata
import (
encoding_binary "encoding/binary"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
tx "github.com/cosmos/cosmos-sdk/types/tx"
_ "github.com/cosmos/gogoproto/gogoproto"
proto "github.com/cosmos/gogoproto/proto"
any "github.com/cosmos/gogoproto/types/any"
io "io"
math "math"
math_bits "math/bits"
@@ -135,7 +135,7 @@ type Customer2 struct {
Fewer float32 `protobuf:"fixed32,4,opt,name=fewer,proto3" json:"fewer,omitempty"`
Reserved int64 `protobuf:"varint,1047,opt,name=reserved,proto3" json:"reserved,omitempty"`
City Customer2_City `protobuf:"varint,6,opt,name=city,proto3,enum=testpb.Customer2_City" json:"city,omitempty"`
Miscellaneous *types.Any `protobuf:"bytes,10,opt,name=miscellaneous,proto3" json:"miscellaneous,omitempty"`
Miscellaneous *any.Any `protobuf:"bytes,10,opt,name=miscellaneous,proto3" json:"miscellaneous,omitempty"`
}
func (m *Customer2) Reset() { *m = Customer2{} }
@@ -213,7 +213,7 @@ func (m *Customer2) GetCity() Customer2_City {
return Customer2_Laos
}
func (m *Customer2) GetMiscellaneous() *types.Any {
func (m *Customer2) GetMiscellaneous() *any.Any {
if m != nil {
return m.Miscellaneous
}
@@ -853,7 +853,7 @@ type TestVersion1 struct {
// *TestVersion1_E
// *TestVersion1_F
Sum isTestVersion1_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -965,7 +965,7 @@ func (m *TestVersion1) GetF() *TestVersion1 {
return nil
}
func (m *TestVersion1) GetG() *types.Any {
func (m *TestVersion1) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -998,7 +998,7 @@ type TestVersion2 struct {
// *TestVersion2_E
// *TestVersion2_F
Sum isTestVersion2_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -1111,7 +1111,7 @@ func (m *TestVersion2) GetF() *TestVersion2 {
return nil
}
func (m *TestVersion2) GetG() *types.Any {
func (m *TestVersion2) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -1151,7 +1151,7 @@ type TestVersion3 struct {
// *TestVersion3_E
// *TestVersion3_F
Sum isTestVersion3_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -1264,7 +1264,7 @@ func (m *TestVersion3) GetF() *TestVersion3 {
return nil
}
func (m *TestVersion3) GetG() *types.Any {
func (m *TestVersion3) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -1303,7 +1303,7 @@ type TestVersion3LoneOneOfValue struct {
//
// *TestVersion3LoneOneOfValue_E
Sum isTestVersion3LoneOneOfValue_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -1405,7 +1405,7 @@ func (m *TestVersion3LoneOneOfValue) GetE() int32 {
return 0
}
func (m *TestVersion3LoneOneOfValue) GetG() *types.Any {
func (m *TestVersion3LoneOneOfValue) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -1443,7 +1443,7 @@ type TestVersion3LoneNesting struct {
//
// *TestVersion3LoneNesting_F
Sum isTestVersion3LoneNesting_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -1547,7 +1547,7 @@ func (m *TestVersion3LoneNesting) GetF() *TestVersion3LoneNesting {
return nil
}
func (m *TestVersion3LoneNesting) GetG() *types.Any {
func (m *TestVersion3LoneNesting) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -1831,7 +1831,7 @@ type TestVersion4LoneNesting struct {
//
// *TestVersion4LoneNesting_F
Sum isTestVersion4LoneNesting_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
// google.protobuf.Timestamp i = 10;
// google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
@@ -1935,7 +1935,7 @@ func (m *TestVersion4LoneNesting) GetF() *TestVersion3LoneNesting {
return nil
}
func (m *TestVersion4LoneNesting) GetG() *types.Any {
func (m *TestVersion4LoneNesting) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -2217,7 +2217,7 @@ type TestVersionFD1 struct {
// *TestVersionFD1_E
// *TestVersionFD1_F
Sum isTestVersionFD1_Sum `protobuf_oneof:"sum"`
G *types.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
G *any.Any `protobuf:"bytes,8,opt,name=g,proto3" json:"g,omitempty"`
H []*TestVersion1 `protobuf:"bytes,9,rep,name=h,proto3" json:"h,omitempty"`
}
@@ -2305,7 +2305,7 @@ func (m *TestVersionFD1) GetF() *TestVersion1 {
return nil
}
func (m *TestVersionFD1) GetG() *types.Any {
func (m *TestVersionFD1) GetG() *any.Any {
if m != nil {
return m.G
}
@@ -2446,9 +2446,9 @@ func (*TestVersionFD1WithExtraAny) XXX_OneofWrappers() []interface{} {
}
type AnyWithExtra struct {
*types.Any `protobuf:"bytes,1,opt,name=a,proto3,embedded=a" json:"a,omitempty"`
B int64 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
C int64 `protobuf:"varint,4,opt,name=c,proto3" json:"c,omitempty"`
*any.Any `protobuf:"bytes,1,opt,name=a,proto3,embedded=a" json:"a,omitempty"`
B int64 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
C int64 `protobuf:"varint,4,opt,name=c,proto3" json:"c,omitempty"`
}
func (m *AnyWithExtra) Reset() { *m = AnyWithExtra{} }
@@ -2575,13 +2575,13 @@ func (m *TestUpdatedTxRaw) GetNewField_1024() []byte {
}
type TestUpdatedTxBody struct {
Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
TimeoutHeight int64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
SomeNewField uint64 `protobuf:"varint,5,opt,name=some_new_field,json=someNewField,proto3" json:"some_new_field,omitempty"`
SomeNewFieldNonCriticalField string `protobuf:"bytes,1050,opt,name=some_new_field_non_critical_field,json=someNewFieldNonCriticalField,proto3" json:"some_new_field_non_critical_field,omitempty"`
ExtensionOptions []*types.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
NonCriticalExtensionOptions []*types.Any `protobuf:"bytes,2047,rep,name=non_critical_extension_options,json=nonCriticalExtensionOptions,proto3" json:"non_critical_extension_options,omitempty"`
Messages []*any.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
TimeoutHeight int64 `protobuf:"varint,3,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
SomeNewField uint64 `protobuf:"varint,5,opt,name=some_new_field,json=someNewField,proto3" json:"some_new_field,omitempty"`
SomeNewFieldNonCriticalField string `protobuf:"bytes,1050,opt,name=some_new_field_non_critical_field,json=someNewFieldNonCriticalField,proto3" json:"some_new_field_non_critical_field,omitempty"`
ExtensionOptions []*any.Any `protobuf:"bytes,1023,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
NonCriticalExtensionOptions []*any.Any `protobuf:"bytes,2047,rep,name=non_critical_extension_options,json=nonCriticalExtensionOptions,proto3" json:"non_critical_extension_options,omitempty"`
}
func (m *TestUpdatedTxBody) Reset() { *m = TestUpdatedTxBody{} }
@@ -2617,7 +2617,7 @@ func (m *TestUpdatedTxBody) XXX_DiscardUnknown() {
var xxx_messageInfo_TestUpdatedTxBody proto.InternalMessageInfo
func (m *TestUpdatedTxBody) GetMessages() []*types.Any {
func (m *TestUpdatedTxBody) GetMessages() []*any.Any {
if m != nil {
return m.Messages
}
@@ -2652,14 +2652,14 @@ func (m *TestUpdatedTxBody) GetSomeNewFieldNonCriticalField() string {
return ""
}
func (m *TestUpdatedTxBody) GetExtensionOptions() []*types.Any {
func (m *TestUpdatedTxBody) GetExtensionOptions() []*any.Any {
if m != nil {
return m.ExtensionOptions
}
return nil
}
func (m *TestUpdatedTxBody) GetNonCriticalExtensionOptions() []*types.Any {
func (m *TestUpdatedTxBody) GetNonCriticalExtensionOptions() []*any.Any {
if m != nil {
return m.NonCriticalExtensionOptions
}
@@ -6806,7 +6806,7 @@ func (m *Customer2) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.Miscellaneous == nil {
m.Miscellaneous = &types.Any{}
m.Miscellaneous = &any.Any{}
}
if err := m.Miscellaneous.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -8519,7 +8519,7 @@ func (m *TestVersion1) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -8889,7 +8889,7 @@ func (m *TestVersion2) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -9278,7 +9278,7 @@ func (m *TestVersion3) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -9645,7 +9645,7 @@ func (m *TestVersion3LoneOneOfValue) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -10027,7 +10027,7 @@ func (m *TestVersion3LoneNesting) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -10996,7 +10996,7 @@ func (m *TestVersion4LoneNesting) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -11855,7 +11855,7 @@ func (m *TestVersionFD1) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.G == nil {
m.G = &types.Any{}
m.G = &any.Any{}
}
if err := m.G.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -12205,7 +12205,7 @@ func (m *AnyWithExtra) Unmarshal(dAtA []byte) error {
return io.ErrUnexpectedEOF
}
if m.Any == nil {
m.Any = &types.Any{}
m.Any = &any.Any{}
}
if err := m.Any.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
@@ -12546,7 +12546,7 @@ func (m *TestUpdatedTxBody) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Messages = append(m.Messages, &types.Any{})
m.Messages = append(m.Messages, &any.Any{})
if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -12650,7 +12650,7 @@ func (m *TestUpdatedTxBody) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ExtensionOptions = append(m.ExtensionOptions, &types.Any{})
m.ExtensionOptions = append(m.ExtensionOptions, &any.Any{})
if err := m.ExtensionOptions[len(m.ExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
@@ -12716,7 +12716,7 @@ func (m *TestUpdatedTxBody) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.NonCriticalExtensionOptions = append(m.NonCriticalExtensionOptions, &types.Any{})
m.NonCriticalExtensionOptions = append(m.NonCriticalExtensionOptions, &any.Any{})
if err := m.NonCriticalExtensionOptions[len(m.NonCriticalExtensionOptions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}