Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NagaTulasi committed Sep 27, 2024
1 parent 78b7d19 commit a984083
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions x/cada/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"
"github.com/vitwit/avail-da-module/x/cada/client/cli"
Expand Down Expand Up @@ -73,7 +72,6 @@ type AppModule struct {
keeper *keeper.Keeper
authkeeper authkeeper.AccountKeeper
bankkeeper bankkeeper.Keeper
govkeeper govkeeper.Keeper
}

// NewAppModule creates a new AppModule object
Expand Down Expand Up @@ -180,7 +178,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
}

// RegisterStoreDecoder registers a decoder for distribution module's types
func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) {
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {
}

// WeightedOperations returns the all the accounts module operations with their respective weights.
Expand Down
6 changes: 2 additions & 4 deletions x/cada/simulation/oprations.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
)

func WeightedOperations(
appParams simtypes.AppParams, cdc codec.JSONCodec, txConfig client.TxConfig,
appParams simtypes.AppParams, _ codec.JSONCodec, txConfig client.TxConfig,
ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper,
) simulation.WeightedOperations {
var weightMsgUpdateBlobStatusRequest int
Expand All @@ -36,14 +36,12 @@ func WeightedOperations(
SimulateUpdateBlobStatus(txConfig, ak, bk, k),
),
}

}

func SimulateUpdateBlobStatus(txConfig client.TxConfig, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper) simtypes.Operation {
func SimulateUpdateBlobStatus(txConfig client.TxConfig, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, _ keeper.Keeper) simtypes.Operation {
return func(
r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string,

Check failure on line 43 in x/cada/simulation/oprations.go

View workflow job for this annotation

GitHub Actions / golangci-lint

unused-parameter: parameter 'chainID' seems to be unused, consider removing or renaming it as _ (revive)
) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {

simaAccount, _ := simtypes.RandomAcc(r, accs)

fromBlock := r.Uint64()%100 + 1
Expand Down
4 changes: 1 addition & 3 deletions x/cada/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const (
TypeMsgUpdateBlobStatus = "update_blob_Status"
)

var (
_ sdk.Msg = (*MsgUpdateBlobStatusRequest)(nil)
)
var _ sdk.Msg = (*MsgUpdateBlobStatusRequest)(nil)

func NewMsgUpdateBlobStatus(valAddr string, blockRange Range, availHeight uint64, isSuccess bool) *MsgUpdateBlobStatusRequest {
return &MsgUpdateBlobStatusRequest{
Expand Down

0 comments on commit a984083

Please sign in to comment.