From 1819e73f619748c9f13d7bc5ff2e18334dbbc03d Mon Sep 17 00:00:00 2001 From: bernd-m <43466467+bermuell@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:05:29 +0100 Subject: [PATCH] fix: auto-fill of gov address for provider 'draft-proposal' (#1444) Fix signer for gov proposal messages --- .../ccv/provider/v1/tx.proto | 16 +- x/ccv/provider/keeper/msg_server.go | 16 +- x/ccv/provider/types/msg.go | 2 +- x/ccv/provider/types/tx.pb.go | 218 +++++++++--------- 4 files changed, 126 insertions(+), 126 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index 4b07c47a0c..7dff77fe99 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -38,10 +38,10 @@ service Msg { // MsgUpdateParams is the Msg/UpdateParams request type message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "signer"; + option (cosmos.msg.v1.signer) = "authority"; // signer is the address of the governance account. - string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the x/provider parameters to update. Params params = 2 [(gogoproto.nullable) = false]; @@ -77,7 +77,7 @@ message MsgAssignConsumerKeyResponse {} // // Note: this replaces ConsumerAdditionProposal which is deprecated and will be removed soon message MsgConsumerAddition { - option (cosmos.msg.v1.signer) = "signer"; + option (cosmos.msg.v1.signer) = "authority"; // the proposed chain-id of the new consumer chain, must be different from all // other consumer chain ids of the executing provider chain. @@ -132,7 +132,7 @@ message MsgConsumerAddition { string distribution_transmission_channel = 12; // signer address - string signer = 13 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 13 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // MsgConsumerAdditionResponse defines response type for MsgConsumerAddition messages @@ -146,7 +146,7 @@ message MsgConsumerAdditionResponse {} // // Note: this replaces ConsumerRemovalProposal which is deprecated and will be removed soon message MsgConsumerRemoval { - option (cosmos.msg.v1.signer) = "signer"; + option (cosmos.msg.v1.signer) = "authority"; // the chain-id of the consumer chain to be stopped string chain_id = 1; @@ -156,7 +156,7 @@ message MsgConsumerRemoval { [ (gogoproto.stdtime) = true, (gogoproto.nullable) = false ]; // signer address - string signer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } // MsgConsumerRemovalResponse defines response type for MsgConsumerRemoval messages @@ -167,14 +167,14 @@ message MsgConsumerRemovalResponse {} // // Note: this replaces ChangeRewardDenomsProposal which is deprecated and will be removed soon message MsgChangeRewardDenoms { - option (cosmos.msg.v1.signer) = "signer"; + option (cosmos.msg.v1.signer) = "authority"; // the list of consumer reward denoms to add repeated string denoms_to_add = 1; // the list of consumer reward denoms to remove repeated string denoms_to_remove = 2; // signer address - string signer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string authority = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; } diff --git a/x/ccv/provider/keeper/msg_server.go b/x/ccv/provider/keeper/msg_server.go index d96fd3dfb4..4776e3451d 100644 --- a/x/ccv/provider/keeper/msg_server.go +++ b/x/ccv/provider/keeper/msg_server.go @@ -30,8 +30,8 @@ var _ types.MsgServer = msgServer{} // UpdateParams updates the params. func (k msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { - if k.GetAuthority() != msg.Signer { - return nil, errorsmod.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Signer) + if k.GetAuthority() != msg.Authority { + return nil, errorsmod.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", k.authority, msg.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) @@ -126,8 +126,8 @@ func (k msgServer) AssignConsumerKey(goCtx context.Context, msg *types.MsgAssign // ConsumerAddition defines a rpc handler method for MsgConsumerAddition func (k msgServer) ConsumerAddition(goCtx context.Context, msg *types.MsgConsumerAddition) (*types.MsgConsumerAdditionResponse, error) { - if k.GetAuthority() != msg.Signer { - return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Signer) + if k.GetAuthority() != msg.Authority { + return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) @@ -142,8 +142,8 @@ func (k msgServer) ConsumerAddition(goCtx context.Context, msg *types.MsgConsume func (k msgServer) ConsumerRemoval( goCtx context.Context, msg *types.MsgConsumerRemoval) (*types.MsgConsumerRemovalResponse, error) { - if k.GetAuthority() != msg.Signer { - return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Signer) + if k.GetAuthority() != msg.Authority { + return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Authority) } ctx := sdk.UnwrapSDKContext(goCtx) @@ -157,8 +157,8 @@ func (k msgServer) ConsumerRemoval( // ChangeRewardDenoms defines a rpc handler method for MsgChangeRewardDenoms func (k msgServer) ChangeRewardDenoms(goCtx context.Context, msg *types.MsgChangeRewardDenoms) (*types.MsgChangeRewardDenomsResponse, error) { - if k.GetAuthority() != msg.Signer { - return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Signer) + if k.GetAuthority() != msg.Authority { + return nil, errorsmod.Wrapf(types.ErrUnauthorized, "expected %s, got %s", k.GetAuthority(), msg.Authority) } sdkCtx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/ccv/provider/types/msg.go b/x/ccv/provider/types/msg.go index b4f52dccaa..4f584365e7 100644 --- a/x/ccv/provider/types/msg.go +++ b/x/ccv/provider/types/msg.go @@ -114,7 +114,7 @@ func ParseConsumerKeyFromJson(jsonStr string) (pkType, key string, err error) { // If the validator address is not same as delegator's, then the validator must // sign the msg as well. func (msg *MsgConsumerAddition) GetSigners() []sdk.AccAddress { - valAddr, err := sdk.ValAddressFromBech32(msg.Signer) + valAddr, err := sdk.ValAddressFromBech32(msg.Authority) if err != nil { // same behavior as in cosmos-sdk panic(err) diff --git a/x/ccv/provider/types/tx.pb.go b/x/ccv/provider/types/tx.pb.go index 186c0ec7ca..90b55de633 100644 --- a/x/ccv/provider/types/tx.pb.go +++ b/x/ccv/provider/types/tx.pb.go @@ -42,7 +42,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // MsgUpdateParams is the Msg/UpdateParams request type type MsgUpdateParams struct { // signer is the address of the governance account. - Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/provider parameters to update. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` } @@ -80,9 +80,9 @@ func (m *MsgUpdateParams) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo -func (m *MsgUpdateParams) GetSigner() string { +func (m *MsgUpdateParams) GetAuthority() string { if m != nil { - return m.Signer + return m.Authority } return "" } @@ -266,7 +266,7 @@ type MsgConsumerAddition struct { // changeover in order to maintan the existing ibc transfer channel DistributionTransmissionChannel string `protobuf:"bytes,12,opt,name=distribution_transmission_channel,json=distributionTransmissionChannel,proto3" json:"distribution_transmission_channel,omitempty"` // signer address - Signer string `protobuf:"bytes,13,opt,name=signer,proto3" json:"signer,omitempty"` + Authority string `protobuf:"bytes,13,opt,name=authority,proto3" json:"authority,omitempty"` } func (m *MsgConsumerAddition) Reset() { *m = MsgConsumerAddition{} } @@ -386,9 +386,9 @@ func (m *MsgConsumerAddition) GetDistributionTransmissionChannel() string { return "" } -func (m *MsgConsumerAddition) GetSigner() string { +func (m *MsgConsumerAddition) GetAuthority() string { if m != nil { - return m.Signer + return m.Authority } return "" } @@ -443,7 +443,7 @@ type MsgConsumerRemoval struct { // stop their consumer chain validator node StopTime time.Time `protobuf:"bytes,2,opt,name=stop_time,json=stopTime,proto3,stdtime" json:"stop_time"` // signer address - Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` } func (m *MsgConsumerRemoval) Reset() { *m = MsgConsumerRemoval{} } @@ -493,9 +493,9 @@ func (m *MsgConsumerRemoval) GetStopTime() time.Time { return time.Time{} } -func (m *MsgConsumerRemoval) GetSigner() string { +func (m *MsgConsumerRemoval) GetAuthority() string { if m != nil { - return m.Signer + return m.Authority } return "" } @@ -547,7 +547,7 @@ type MsgChangeRewardDenoms struct { // the list of consumer reward denoms to remove DenomsToRemove []string `protobuf:"bytes,2,rep,name=denoms_to_remove,json=denomsToRemove,proto3" json:"denoms_to_remove,omitempty"` // signer address - Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"` + Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` } func (m *MsgChangeRewardDenoms) Reset() { *m = MsgChangeRewardDenoms{} } @@ -597,9 +597,9 @@ func (m *MsgChangeRewardDenoms) GetDenomsToRemove() []string { return nil } -func (m *MsgChangeRewardDenoms) GetSigner() string { +func (m *MsgChangeRewardDenoms) GetAuthority() string { if m != nil { - return m.Signer + return m.Authority } return "" } @@ -659,75 +659,75 @@ func init() { } var fileDescriptor_43221a4391e9fbf4 = []byte{ - // 1075 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0x36, 0x6d, 0x9a, 0x8c, 0x93, 0x26, 0x99, 0xa6, 0x8a, 0x63, 0x52, 0x3b, 0x31, 0x1c, - 0xa2, 0x42, 0x76, 0x49, 0x8a, 0x54, 0x88, 0x40, 0x60, 0x27, 0x40, 0x0a, 0x0a, 0x84, 0x25, 0x08, - 0x09, 0x0e, 0xab, 0xf1, 0xec, 0x64, 0x3d, 0xaa, 0x77, 0x66, 0x35, 0x33, 0x76, 0xeb, 0x1b, 0xea, - 0x09, 0x09, 0x09, 0x15, 0x89, 0x03, 0x12, 0x97, 0x1e, 0xf8, 0x01, 0x45, 0xe2, 0x47, 0xf4, 0x58, - 0x21, 0x24, 0x90, 0x90, 0x0a, 0x4a, 0x0e, 0xe5, 0xcc, 0x2f, 0x40, 0x33, 0x3b, 0xeb, 0xd8, 0x8e, - 0x5b, 0xb9, 0xe6, 0x62, 0xcd, 0xee, 0xfb, 0xbe, 0xef, 0x7d, 0x6f, 0xf6, 0xbd, 0xf1, 0x80, 0x57, - 0x28, 0x53, 0x44, 0xe0, 0x06, 0xa2, 0x2c, 0x90, 0x04, 0xb7, 0x04, 0x55, 0x1d, 0x0f, 0xe3, 0xb6, - 0x97, 0x08, 0xde, 0xa6, 0x21, 0x11, 0x5e, 0x7b, 0xd3, 0x53, 0x77, 0xdc, 0x44, 0x70, 0xc5, 0xe1, - 0x8b, 0x43, 0xd0, 0x2e, 0xc6, 0x6d, 0x37, 0x43, 0xbb, 0xed, 0xcd, 0xe2, 0x02, 0x8a, 0x29, 0xe3, - 0x9e, 0xf9, 0x4d, 0x79, 0xc5, 0x95, 0x88, 0xf3, 0xa8, 0x49, 0x3c, 0x94, 0x50, 0x0f, 0x31, 0xc6, - 0x15, 0x52, 0x94, 0x33, 0x69, 0xa3, 0x65, 0x1b, 0x35, 0x4f, 0xf5, 0xd6, 0x91, 0xa7, 0x68, 0x4c, - 0xa4, 0x42, 0x71, 0x62, 0x01, 0xa5, 0x41, 0x40, 0xd8, 0x12, 0x46, 0xc1, 0xc6, 0x97, 0x07, 0xe3, - 0x88, 0x75, 0x6c, 0x68, 0x31, 0xe2, 0x11, 0x37, 0x4b, 0x4f, 0xaf, 0x32, 0x02, 0xe6, 0x32, 0xe6, - 0x32, 0x48, 0x03, 0xe9, 0x83, 0x0d, 0x2d, 0xa5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, - 0xab, 0xf8, 0x33, 0x19, 0x50, 0x17, 0x0c, 0xd7, 0xc0, 0x0c, 0xb6, 0x29, 0x82, 0x5b, 0xa4, 0x53, - 0x98, 0x30, 0xba, 0x79, 0xdc, 0x93, 0xf6, 0x74, 0xd3, 0xce, 0x8f, 0xb6, 0x69, 0xdb, 0x97, 0xbf, - 0xbe, 0x5f, 0xce, 0xfd, 0x73, 0xbf, 0x9c, 0xeb, 0xad, 0xb8, 0x04, 0x56, 0x86, 0x55, 0xd5, 0x2d, - 0xfb, 0xf7, 0x49, 0x70, 0x79, 0x5f, 0x46, 0x59, 0xa8, 0x1a, 0x86, 0x54, 0xf7, 0xe1, 0xb3, 0xaa, - 0x7e, 0x1f, 0x5c, 0xa2, 0x8c, 0x2a, 0x8a, 0x9a, 0x41, 0x83, 0xd0, 0xa8, 0xa1, 0xec, 0x47, 0x2a, - 0xba, 0xb4, 0x8e, 0x5d, 0xdd, 0x50, 0xae, 0x6d, 0xa3, 0xf6, 0xa6, 0xbb, 0x67, 0x10, 0xf6, 0x9b, - 0xcc, 0x5a, 0x5e, 0xfa, 0x52, 0xef, 0x42, 0x44, 0x18, 0x91, 0x54, 0x06, 0x0d, 0x24, 0x1b, 0x66, - 0x17, 0x66, 0xfc, 0xbc, 0x7d, 0xb7, 0x87, 0x64, 0x03, 0x96, 0x41, 0xbe, 0x4e, 0x19, 0x12, 0x9d, - 0x14, 0x71, 0xde, 0x20, 0x40, 0xfa, 0xca, 0x00, 0x76, 0x00, 0x90, 0x09, 0xba, 0xcd, 0x02, 0x3d, - 0x62, 0x85, 0x0b, 0xd6, 0x48, 0x3a, 0x3e, 0x6e, 0x36, 0x3e, 0xee, 0x61, 0x36, 0x7f, 0xb5, 0x29, - 0x6d, 0xe4, 0xde, 0x5f, 0x65, 0xc7, 0x9f, 0x36, 0x3c, 0x1d, 0x81, 0x1f, 0x81, 0xf9, 0x16, 0xab, - 0x73, 0x16, 0x52, 0x16, 0x05, 0x09, 0x11, 0x94, 0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 0x64, 0xdd, 0x33, 0xdc, 0x62, 0x6d, 0x7c, 0x6e, 0xd7, 0xd6, - 0x5d, 0x07, 0xcc, 0xf4, 0xdd, 0x88, 0x5e, 0x1b, 0x55, 0xb4, 0x97, 0x55, 0x7c, 0x73, 0x1c, 0x56, - 0x66, 0xa2, 0x78, 0xe1, 0xab, 0x27, 0x0f, 0xae, 0x39, 0xb5, 0xcf, 0x1f, 0x1e, 0x97, 0x9c, 0x47, - 0xc7, 0x25, 0xe7, 0xef, 0xe3, 0x92, 0x73, 0xef, 0xa4, 0x94, 0x7b, 0x74, 0x52, 0xca, 0xfd, 0x71, - 0x52, 0xca, 0x7d, 0xf1, 0x56, 0x44, 0x55, 0xa3, 0x55, 0x77, 0x31, 0x8f, 0xed, 0x0d, 0xd2, 0x3b, - 0xcd, 0xb7, 0xd1, 0xbd, 0x00, 0xb6, 0xaf, 0x7b, 0x77, 0xfa, 0x6f, 0x81, 0xaa, 0x93, 0x10, 0x59, - 0x9f, 0x34, 0x67, 0xd0, 0xf5, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x60, 0xfa, 0xcb, 0x81, - 0x0b, 0x00, 0x00, + // 1087 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0x36, 0x3f, 0x1a, 0x4f, 0x7e, 0x6f, 0x53, 0xc5, 0x31, 0xa9, 0x9d, 0x18, 0x0e, 0x51, + 0x21, 0xbb, 0x24, 0x45, 0x14, 0x22, 0x10, 0xd8, 0x09, 0x90, 0x82, 0x02, 0x61, 0x09, 0x42, 0x82, + 0xc3, 0x6a, 0x3c, 0x3b, 0xd9, 0x1d, 0xd5, 0x3b, 0xb3, 0x9a, 0x19, 0xbb, 0xf5, 0x0d, 0xf5, 0x84, + 0x84, 0x84, 0x8a, 0xc4, 0x81, 0x63, 0x0f,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0xdd, 0xb1, 0xc0, 0x4c, 0xd7, + 0x57, 0xd3, 0x6b, 0xc3, 0x8a, 0x9e, 0x67, 0x15, 0xdf, 0x1a, 0x85, 0x95, 0x99, 0x28, 0x4e, 0x7c, + 0xfd, 0xe4, 0xfe, 0x55, 0xab, 0xf6, 0xc5, 0x83, 0x93, 0x92, 0xf5, 0xf0, 0xa4, 0x64, 0x3d, 0x3e, + 0x29, 0x59, 0x77, 0x4f, 0x4b, 0xb9, 0x87, 0xa7, 0xa5, 0xdc, 0x1f, 0xa7, 0xa5, 0xdc, 0x97, 0x6f, + 0x87, 0x44, 0x46, 0xcd, 0xba, 0x83, 0x58, 0x6c, 0xbe, 0x32, 0xdd, 0xb3, 0x7c, 0x9b, 0x9d, 0x8f, + 0xc4, 0xd6, 0x35, 0xf7, 0x76, 0xf7, 0x97, 0xa2, 0x6c, 0x27, 0x58, 0xd4, 0x27, 0xf5, 0x54, 0xba, + 0xf6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xed, 0x28, 0x35, 0xa5, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -984,10 +984,10 @@ func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x12 - if len(m.Signer) > 0 { - i -= len(m.Signer) - copy(dAtA[i:], m.Signer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0xa } @@ -1111,10 +1111,10 @@ func (m *MsgConsumerAddition) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Signer) > 0 { - i -= len(m.Signer) - copy(dAtA[i:], m.Signer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0x6a } @@ -1251,10 +1251,10 @@ func (m *MsgConsumerRemoval) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Signer) > 0 { - i -= len(m.Signer) - copy(dAtA[i:], m.Signer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0x1a } @@ -1319,10 +1319,10 @@ func (m *MsgChangeRewardDenoms) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Signer) > 0 { - i -= len(m.Signer) - copy(dAtA[i:], m.Signer) - i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) i-- dAtA[i] = 0x1a } @@ -1387,7 +1387,7 @@ func (m *MsgUpdateParams) Size() (n int) { } var l int _ = l - l = len(m.Signer) + l = len(m.Authority) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1481,7 +1481,7 @@ func (m *MsgConsumerAddition) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Signer) + l = len(m.Authority) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1509,7 +1509,7 @@ func (m *MsgConsumerRemoval) Size() (n int) { } l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.StopTime) n += 1 + l + sovTx(uint64(l)) - l = len(m.Signer) + l = len(m.Authority) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1543,7 +1543,7 @@ func (m *MsgChangeRewardDenoms) Size() (n int) { n += 1 + l + sovTx(uint64(l)) } } - l = len(m.Signer) + l = len(m.Authority) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1596,7 +1596,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1624,7 +1624,7 @@ func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signer = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2356,7 +2356,7 @@ func (m *MsgConsumerAddition) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 13: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2384,7 +2384,7 @@ func (m *MsgConsumerAddition) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signer = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2553,7 +2553,7 @@ func (m *MsgConsumerRemoval) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2581,7 +2581,7 @@ func (m *MsgConsumerRemoval) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signer = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2749,7 +2749,7 @@ func (m *MsgChangeRewardDenoms) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2777,7 +2777,7 @@ func (m *MsgChangeRewardDenoms) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signer = string(dAtA[iNdEx:postIndex]) + m.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex