From 908677e64891608a2659a2847c10a464ef5785ba Mon Sep 17 00:00:00 2001 From: bjwswang <30621793+bjwswang@users.noreply.github.com> Date: Thu, 11 May 2023 17:03:35 +0800 Subject: [PATCH] chore: fix typo in staking's genesis proto (#16095) Signed-off-by: bjwswang --- api/cosmos/staking/v1beta1/genesis.pulsar.go | 2 +- proto/cosmos/staking/v1beta1/genesis.proto | 2 +- x/gov/types/v1/gov.pb.go | 2 +- x/gov/types/v1/tx.pb.go | 2 +- x/gov/types/v1beta1/gov.pb.go | 2 +- x/gov/types/v1beta1/tx.pb.go | 2 +- x/staking/types/genesis.pb.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/cosmos/staking/v1beta1/genesis.pulsar.go b/api/cosmos/staking/v1beta1/genesis.pulsar.go index 67b645dc15..38efa2056c 100644 --- a/api/cosmos/staking/v1beta1/genesis.pulsar.go +++ b/api/cosmos/staking/v1beta1/genesis.pulsar.go @@ -1755,7 +1755,7 @@ type GenesisState struct { // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. LastValidatorPowers []*LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers,omitempty"` - // delegations defines the validator set at genesis. + // validators defines the validator set at genesis. Validators []*Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators,omitempty"` // delegations defines the delegations active at genesis. Delegations []*Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations,omitempty"` diff --git a/proto/cosmos/staking/v1beta1/genesis.proto b/proto/cosmos/staking/v1beta1/genesis.proto index 482d50ccb1..8b278ff91a 100644 --- a/proto/cosmos/staking/v1beta1/genesis.proto +++ b/proto/cosmos/staking/v1beta1/genesis.proto @@ -25,7 +25,7 @@ message GenesisState { // of the last-block's bonded validators. repeated LastValidatorPower last_validator_powers = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // delegations defines the validator set at genesis. + // validators defines the validator set at genesis. repeated Validator validators = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // delegations defines the delegations active at genesis. diff --git a/x/gov/types/v1/gov.pb.go b/x/gov/types/v1/gov.pb.go index 91f414b768..8384b8f1df 100644 --- a/x/gov/types/v1/gov.pb.go +++ b/x/gov/types/v1/gov.pb.go @@ -2929,7 +2929,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRegistryOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { diff --git a/x/gov/types/v1/tx.pb.go b/x/gov/types/v1/tx.pb.go index 02471136d8..3ab042b178 100644 --- a/x/gov/types/v1/tx.pb.go +++ b/x/gov/types/v1/tx.pb.go @@ -2814,7 +2814,7 @@ func (m *MsgVoteWeighted) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRegistryOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { diff --git a/x/gov/types/v1beta1/gov.pb.go b/x/gov/types/v1beta1/gov.pb.go index 993fa5a836..1acd514b71 100644 --- a/x/gov/types/v1beta1/gov.pb.go +++ b/x/gov/types/v1beta1/gov.pb.go @@ -2373,7 +2373,7 @@ func (m *Vote) Unmarshal(dAtA []byte) error { } case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRegistryOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { diff --git a/x/gov/types/v1beta1/tx.pb.go b/x/gov/types/v1beta1/tx.pb.go index d44670d925..80d6fe1f1f 100644 --- a/x/gov/types/v1beta1/tx.pb.go +++ b/x/gov/types/v1beta1/tx.pb.go @@ -1538,7 +1538,7 @@ func (m *MsgVoteWeighted) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InterfaceRegistryOptions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) } var msglen int for shift := uint(0); ; shift += 7 { diff --git a/x/staking/types/genesis.pb.go b/x/staking/types/genesis.pb.go index 4bf9437132..fc9b8d48a2 100644 --- a/x/staking/types/genesis.pb.go +++ b/x/staking/types/genesis.pb.go @@ -36,7 +36,7 @@ type GenesisState struct { // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"` - // delegations defines the validator set at genesis. + // validators defines the validator set at genesis. Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` // delegations defines the delegations active at genesis. Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`