This commit is contained in:
Jacob Gadikian 2022-06-28 20:41:42 +07:00 committed by GitHub
parent abf3b1856c
commit 9d280ac936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 10 additions and 23 deletions

View File

@ -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() {}

View File

@ -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 {

View File

@ -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}

View File

@ -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)

View File

@ -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,
},

View File

@ -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
}

View File

@ -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,

View File

@ -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

View File

@ -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

View File

@ -46,7 +46,6 @@ type TestSuite struct {
}
func (s *TestSuite) SetupTest() {
app, err := simtestutil.Setup(
grouptestutil.AppConfig,
&s.interfaceRegistry,

View File

@ -39,7 +39,6 @@ func TestIntegrationTestSuite(t *testing.T) {
}
func (s *IntegrationTestSuite) SetupTest() {
app, err := simtestutil.Setup(
grouptestutil.AppConfig,
&s.interfaceRegistry,

View File

@ -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 {

View File

@ -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
}