quick lint while doing other prs (#13726)

This commit is contained in:
Marko 2022-11-02 12:12:36 +01:00 committed by GitHub
parent 97bd2ab792
commit dc004c85f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 11 deletions

View File

@ -185,7 +185,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupply() {
initialSupply := res.GetSupply()
rapid.Check(suite.T(), func(t *rapid.T) {
numCoins := rapid.IntRange(1, 3).Draw(t, "num-count")
coins := make(sdk.Coins, 0, numCoins)
@ -233,7 +232,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupplyOf() {
req := &banktypes.QuerySupplyOfRequest{Denom: coin.GetDenom()}
testdata.DeterministicIterations(suite.ctx, suite.Require(), req, suite.queryClient.SupplyOf, 0, true)
})
coin := sdk.NewCoin("bar", sdk.NewInt(100))

View File

@ -12,11 +12,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
var (
// iterCount defines the number of iterations to run on each query to test
// determinism.
iterCount = 1000
)
// iterCount defines the number of iterations to run on each query to test
// determinism.
var iterCount = 1000
type QueryImpl struct{}

View File

@ -7,8 +7,7 @@ import (
"google.golang.org/protobuf/reflect/protoreflect"
)
type stringValueRenderer struct {
}
type stringValueRenderer struct{}
// NewStringValueRenderer returns a ValueRenderer for protocol buffer string values.
// It renders the string as-is without quotation.

View File

@ -55,7 +55,8 @@ func (tx testTx) GetSignaturesV2() (res []txsigning.SignatureV2, err error) {
res = append(res, txsigning.SignatureV2{
PubKey: testPubKey{address: tx.address},
Data: nil,
Sequence: tx.nonce})
Sequence: tx.nonce,
})
return res, nil
}

View File

@ -119,7 +119,6 @@ func TestMigrateStore(t *testing.T) {
// Check if proposal 2 is in the new store but not proposal 1
require.Nil(t, store.Get(v4.VotingPeriodProposalKey(proposal1.Id)))
require.Equal(t, []byte{0x1}, store.Get(v4.VotingPeriodProposalKey(proposal2.Id)))
}
func getTestProposal() []sdk.Msg {