chore: fix typo in staking's genesis proto (#16095)

Signed-off-by: bjwswang <bjwswang@gmail.com>
This commit is contained in:
bjwswang
2023-05-11 09:03:35 +00:00
committed by GitHub
parent 1b836a651a
commit 908677e648
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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"`
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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"`