style: make lint-fix everything (#15631)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Jacob Gadikian
2023-03-30 17:27:39 +00:00
committed by GitHub
co-authored by Julien Robert
parent d9e04c56c6
commit b009a75eea
28 changed files with 83 additions and 43 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ func indirect(ptr interface{}) interface{} {
}
func TestGetSubspaces(t *testing.T) {
_, _, _, _, keeper := testComponents()
_, _, _, _, keeper := testComponents()
table := types.NewKeyTable(
types.NewParamSetPair([]byte("string"), "", validateNoOp),
+2 -2
View File
@@ -657,11 +657,11 @@ func TestRejectUnknownFieldsFlat(t *testing.T) {
func TestPackedEncoding(t *testing.T) {
data := &testpb.TestRepeatedUints{Nums: []uint64{12, 13}}
marshalled, err := proto.Marshal(data)
marshaled, err := proto.Marshal(data)
require.NoError(t, err)
unmarshalled := data.ProtoReflect().Descriptor()
_, err = decode.RejectUnknownFields(marshalled, unmarshalled, false, ProtoResolver)
_, err = decode.RejectUnknownFields(marshaled, unmarshalled, false, ProtoResolver)
require.NoError(t, err)
}
+2 -2
View File
@@ -46,7 +46,7 @@ func (vr intValueRenderer) Parse(_ context.Context, screens []Screen) (protorefl
if err != nil {
return nilValue, err
}
return protoreflect.ValueOfUint32(uint32(value)), nil //nolint:gosec
return protoreflect.ValueOfUint32(uint32(value)), nil
case protoreflect.Uint64Kind:
value, err := strconv.ParseUint(parsedInt, 10, 64)
@@ -60,7 +60,7 @@ func (vr intValueRenderer) Parse(_ context.Context, screens []Screen) (protorefl
if err != nil {
return nilValue, err
}
return protoreflect.ValueOfInt32(int32(value)), nil //nolint:gosec
return protoreflect.ValueOfInt32(int32(value)), nil
case protoreflect.Int64Kind:
value, err := strconv.ParseInt(parsedInt, 10, 64)
+1 -1
View File
@@ -117,7 +117,7 @@ specified here https://github.com/cosmos/cosmos-sdk/tree/main/cosmovisor/README.
This will allow a properly configured cosmsod daemon to auto-download new binaries and auto-upgrade.
As noted there, this is intended more for full nodes than validators.
# Cancelling Upgrades
# Canceling Upgrades
There are two ways to cancel a planned upgrade - with on-chain governance or off-chain social consensus.
For the first one, there is a CancelSoftwareUpgrade proposal type, which can be voted on and will
+1 -1
View File
@@ -35,7 +35,7 @@ type Keeper struct {
upgradeHandlers map[string]types.UpgradeHandler // map of plan name to upgrade handler
versionSetter xp.ProtocolVersionSetter // implements setting the protocol version field on BaseApp
downgradeVerified bool // tells if we've already sanity checked that this binary version isn't being used against an old state.
authority string // the address capable of executing and cancelling an upgrade. Usually the gov module account
authority string // the address capable of executing and canceling an upgrade. Usually the gov module account
initVersionMap module.VersionMap // the module version map at init genesis
}
+1 -1
View File
@@ -94,7 +94,7 @@ func (s *KeeperTestSuite) TestCancelUpgrade() {
"expected gov account as only signer for proposal message",
},
{
"upgrade cancelled successfully",
"upgrade canceled successfully",
&types.MsgCancelUpgrade{
Authority: govAccAddr,
},