diff --git a/x/market/simulation/operations.go b/x/market/simulation/operations.go index 5fd04e4d7..915e04133 100644 --- a/x/market/simulation/operations.go +++ b/x/market/simulation/operations.go @@ -223,13 +223,13 @@ func SimulateMsgCloseBid(ks keepers.Keepers) simtypes.Operation { } // SimulateMsgCloseLease generates a MsgCloseLease with random values -func SimulateMsgCloseLease(ks keepers.Keepers) simtypes.Operation { +func SimulateMsgCloseLease(_ keepers.Keepers) simtypes.Operation { return func( - r *rand.Rand, - app *baseapp.BaseApp, - ctx sdk.Context, - accounts []simtypes.Account, - chainID string, + r *rand.Rand, // nolint revive + app *baseapp.BaseApp, // nolint revive + ctx sdk.Context, // nolint revive + accounts []simtypes.Account, // nolint revive + chainID string, // nolint revive ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { // leases := getLeasesWithState(ctx, ks, v1.LeaseActive) // if len(leases) == 0 { diff --git a/x/market/simulation/utils.go b/x/market/simulation/utils.go index 963dd0a49..2b1515340 100644 --- a/x/market/simulation/utils.go +++ b/x/market/simulation/utils.go @@ -2,8 +2,6 @@ package simulation import ( sdk "github.com/cosmos/cosmos-sdk/types" - v1 "pkg.akt.dev/go/node/market/v1" - "pkg.akt.dev/go/node/market/v1beta5" ptypes "pkg.akt.dev/go/node/provider/v1beta4" @@ -11,20 +9,6 @@ import ( keepers "pkg.akt.dev/node/x/market/handler" ) -func getLeasesWithState(ctx sdk.Context, ks keepers.Keepers, state v1.Lease_State) v1.Leases { - var leases v1.Leases - - ks.Market.WithLeases(ctx, func(lease v1.Lease) bool { - if lease.State == state { - leases = append(leases, lease) - } - - return false - }) - - return leases -} - func getOrdersWithState(ctx sdk.Context, ks keepers.Keepers, state v1beta5.Order_State) v1beta5.Orders { var orders v1beta5.Orders