diff --git a/app/consumer-democracy/app.go b/app/consumer-democracy/app.go index 7d5646f1dc..12c0ab6882 100644 --- a/app/consumer-democracy/app.go +++ b/app/consumer-democracy/app.go @@ -989,7 +989,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino paramsKeeper.Subspace(authtypes.ModuleName).WithKeyTable(authtypes.ParamKeyTable()) //nolint:staticcheck // TODO: remove this temorary solution paramsKeeper.Subspace(banktypes.ModuleName) paramsKeeper.Subspace(stakingtypes.ModuleName) - paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable()) //nolint:staticcheck // TODO: remove this temorary solution + paramsKeeper.Subspace(minttypes.ModuleName).WithKeyTable(minttypes.ParamKeyTable()) paramsKeeper.Subspace(distrtypes.ModuleName) paramsKeeper.Subspace(slashingtypes.ModuleName) paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(gov.ProvideKeyTable()) diff --git a/tests/difference/core/driver/seed_gen_fuzzy_test.go b/tests/difference/core/driver/seed_gen_fuzzy_test.go index 610d31e40e..1211dd6ea9 100644 --- a/tests/difference/core/driver/seed_gen_fuzzy_test.go +++ b/tests/difference/core/driver/seed_gen_fuzzy_test.go @@ -16,7 +16,7 @@ import ( func GetPV(seed []byte) mock.PV { //lint:ignore SA1019 We don't care because this is only a test. - return mock.PV{PrivKey: &cosmosEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)}} //nolint:staticcheck // SA1019: cosmosEd25519.PrivKey is deprecated: PrivKey defines a ed25519 private key. NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + return mock.PV{PrivKey: &cosmosEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)}} } // getStakingKeyBytes takes seed bytes which can be be used to create diff --git a/tests/difference/core/driver/setup.go b/tests/difference/core/driver/setup.go index 52f02ada29..4d13f0a6ea 100644 --- a/tests/difference/core/driver/setup.go +++ b/tests/difference/core/driver/setup.go @@ -102,7 +102,7 @@ func (b *Builder) consAddr(i int64) sdk.ConsAddress { // getValidatorPK returns the validator private key using the given seed index func (b *Builder) getValidatorPK(seedIx int) mock.PV { seed := []byte(b.initState.PKSeeds[seedIx]) - return mock.PV{PrivKey: &cosmosEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)}} //nolint:staticcheck // SA1019: cosmosEd25519.PrivKey is deprecated: PrivKey defines a ed25519 private key. NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + return mock.PV{PrivKey: &cosmosEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)}} } func (b *Builder) getAppBytesAndSenders( diff --git a/testutil/crypto/crypto.go b/testutil/crypto/crypto.go index 53babef942..8dc7ee2031 100644 --- a/testutil/crypto/crypto.go +++ b/testutil/crypto/crypto.go @@ -31,7 +31,7 @@ type CryptoIdentity struct { func NewCryptoIdentityFromBytesSeed(seed []byte) *CryptoIdentity { //lint:ignore SA1019 We don't care because this is only a test. - consKey := &sdkcryptoEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)} //nolint:staticcheck // SA1019: sdkcryptoEd25519.PrivKey is deprecated: PrivKey defines a ed25519 private key. NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. + consKey := &sdkcryptoEd25519.PrivKey{Key: cryptoEd25519.NewKeyFromSeed(seed)} opKey := sdkcryptoSecp256k1.GenPrivKeyFromSecret(seed) return &CryptoIdentity{ diff --git a/x/ccv/provider/keeper/relay_test.go b/x/ccv/provider/keeper/relay_test.go index 7fb5d7157d..58bc0e9c22 100644 --- a/x/ccv/provider/keeper/relay_test.go +++ b/x/ccv/provider/keeper/relay_test.go @@ -145,7 +145,6 @@ func TestOnRecvVSCMaturedPacket(t *testing.T) { // Now queue a slash packet data instance for chain-2, confirm v1 result ack is returned err = executeOnRecvVSCMaturedPacket(t, &providerKeeper, ctx, "channel-2", 2) require.NoError(t, err) - } func TestHandleLeadingVSCMaturedPackets(t *testing.T) { diff --git a/x/ccv/provider/proposal_handler_test.go b/x/ccv/provider/proposal_handler_test.go index 7e4d586097..4544db335c 100644 --- a/x/ccv/provider/proposal_handler_test.go +++ b/x/ccv/provider/proposal_handler_test.go @@ -70,7 +70,7 @@ func TestProviderProposalHandler(t *testing.T) { { name: "unsupported proposal type", // lint rule disabled because this is a test case for an unsupported proposal type - // nolint:staticcheck + content: &distributiontypes.CommunityPoolSpendProposal{ Title: "title", Description: "desc",