fumpt (#12376)
This commit is contained in:
parent
abf3b1856c
commit
9d280ac936
@ -25,9 +25,11 @@ type Duck interface {
|
||||
quack()
|
||||
}
|
||||
|
||||
type Mallard struct{}
|
||||
type Canvasback struct{}
|
||||
type Marbled struct{}
|
||||
type (
|
||||
Mallard struct{}
|
||||
Canvasback struct{}
|
||||
Marbled struct{}
|
||||
)
|
||||
|
||||
func (duck Mallard) quack() {}
|
||||
func (duck Canvasback) quack() {}
|
||||
|
||||
@ -62,7 +62,6 @@ func (err ErrNoTypeForExplicitBindingFound) Error() string {
|
||||
return fmt.Sprintf("No type for explicit binding found. Given the explicit interface binding %s, a provider of type %s was not found.",
|
||||
err.Interface, err.Implementation)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func duplicateDefinitionError(typ reflect.Type, duplicateLoc Location, existingLoc string) error {
|
||||
|
||||
@ -201,7 +201,6 @@ func NewSimApp(
|
||||
logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, encodingConfig simappparams.EncodingConfig,
|
||||
appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp),
|
||||
) *SimApp {
|
||||
|
||||
var (
|
||||
appBuilder *runtime.AppBuilder
|
||||
app = &SimApp{invCheckPeriod: invCheckPeriod}
|
||||
|
||||
@ -46,7 +46,6 @@ func provideModule(in txInputs) txOutputs {
|
||||
txConfig := tx.NewTxConfig(in.ProtoCodecMarshaler, tx.DefaultSignModes)
|
||||
|
||||
baseAppOption := func(app *baseapp.BaseApp) {
|
||||
|
||||
// AnteHandlers
|
||||
if !in.Config.SkipAnteHandler {
|
||||
anteHandler, err := newAnteHandler(txConfig, in)
|
||||
|
||||
@ -242,8 +242,8 @@ func (s IntegrationTestSuite) TestGetTxEvents_GRPC() {
|
||||
"with pagination",
|
||||
&tx.GetTxsEventRequest{
|
||||
Events: []string{bankMsgSendEventAction},
|
||||
Page: 2,
|
||||
Limit: 2,
|
||||
Page: 2,
|
||||
Limit: 2,
|
||||
},
|
||||
false, "", 1,
|
||||
},
|
||||
|
||||
@ -121,11 +121,9 @@ func (k Keeper) GranterGrants(c context.Context, req *authz.QueryGranterGrantsRe
|
||||
Authorization: any,
|
||||
Expiration: auth.Expiration,
|
||||
}, nil
|
||||
|
||||
}, func() *authz.Grant {
|
||||
return &authz.Grant{}
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -71,7 +71,6 @@ func RandomGenesisBalances(simState *module.SimulationState) []types.Balance {
|
||||
|
||||
// RandomizedGenState generates a random GenesisState for bank
|
||||
func RandomizedGenState(simState *module.SimulationState) {
|
||||
|
||||
var defaultSendEnabledParam bool
|
||||
simState.AppParams.GetOrGenerate(
|
||||
simState.Cdc, string(types.KeyDefaultSendEnabled), &defaultSendEnabledParam, simState.Rand,
|
||||
|
||||
@ -10,10 +10,8 @@ import (
|
||||
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||
)
|
||||
|
||||
var (
|
||||
// DefaultDefaultSendEnabled is the value that DefaultSendEnabled will have from DefaultParams().
|
||||
DefaultDefaultSendEnabled = true
|
||||
)
|
||||
// DefaultDefaultSendEnabled is the value that DefaultSendEnabled will have from DefaultParams().
|
||||
var DefaultDefaultSendEnabled = true
|
||||
|
||||
var (
|
||||
// KeySendEnabled is store's key for SendEnabled Params
|
||||
|
||||
@ -37,7 +37,6 @@ type validator struct {
|
||||
|
||||
// Context in https://github.com/cosmos/cosmos-sdk/issues/9161
|
||||
func TestVerifyProposerRewardAssignement(t *testing.T) {
|
||||
|
||||
var (
|
||||
bankKeeper bankkeeper.Keeper
|
||||
stakingKeeper *stakingkeeper.Keeper
|
||||
|
||||
@ -46,7 +46,6 @@ type TestSuite struct {
|
||||
}
|
||||
|
||||
func (s *TestSuite) SetupTest() {
|
||||
|
||||
app, err := simtestutil.Setup(
|
||||
grouptestutil.AppConfig,
|
||||
&s.interfaceRegistry,
|
||||
|
||||
@ -39,7 +39,6 @@ func TestIntegrationTestSuite(t *testing.T) {
|
||||
}
|
||||
|
||||
func (s *IntegrationTestSuite) SetupTest() {
|
||||
|
||||
app, err := simtestutil.Setup(
|
||||
grouptestutil.AppConfig,
|
||||
&s.interfaceRegistry,
|
||||
|
||||
@ -73,7 +73,7 @@ func (s *TestSuite) TestBatchMint() {
|
||||
{
|
||||
"faild with not exist class",
|
||||
func(tokens []nft.NFT) {
|
||||
//do nothing
|
||||
// do nothing
|
||||
},
|
||||
[]nft.NFT{
|
||||
{ClassId: "classID1", Id: "nftID1"},
|
||||
@ -197,7 +197,6 @@ func (s *TestSuite) TestBatchBurn() {
|
||||
s.Require().Error(err)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (s *TestSuite) TestBatchUpdate() {
|
||||
@ -266,7 +265,6 @@ func (s *TestSuite) TestBatchUpdate() {
|
||||
s.Require().Error(err)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (s *TestSuite) TestBatchTransfer() {
|
||||
@ -333,7 +331,6 @@ func (s *TestSuite) TestBatchTransfer() {
|
||||
s.Require().Error(err)
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func groupByClassID(tokens []nft.NFT) map[string][]nft.NFT {
|
||||
|
||||
@ -106,7 +106,6 @@ func SimulateMsgSend(
|
||||
[]uint64{senderAcc.GetSequence()},
|
||||
sender.PrivKey,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return simtypes.NoOpMsg(nft.ModuleName, TypeMsgSend, "unable to generate mock tx"), nil, err
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user