diff --git a/.golangci.yaml b/.golangci.yaml index 2374a5c1..f72f3c32 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -8,7 +8,7 @@ linters: - gosimple - govet - ineffassign - - nosnakecase + - revive - staticcheck - unused issues: diff --git a/app/app.go b/app/app.go index 2abc4d0f..ba27d32e 100644 --- a/app/app.go +++ b/app/app.go @@ -909,7 +909,7 @@ func (app *App) GetSubspace(moduleName string) paramstypes.Subspace { // RegisterAPIRoutes registers all application module routes with the provided // API server. -func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) { +func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig) { clientCtx := apiSvr.ClientCtx // Register new tx routes from grpc-gateway. authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) diff --git a/app/simulation_test.go b/app/simulation_test.go index dfa36de5..53d43b65 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -39,7 +39,7 @@ import ( "github.com/planetmint/planetmint-go/app" ) -const SIMULATION_SETUP_FAILED = "simulation setup failed" +const SimulationSetupFailed = "simulation setup failed" type storeKeysPrefixes struct { A storetypes.StoreKey @@ -78,7 +78,7 @@ func BenchmarkSimulation(b *testing.B) { simcli.FlagVerboseValue, simcli.FlagEnabledValue, ) - require.NoError(b, err, SIMULATION_SETUP_FAILED) + require.NoError(b, err, SimulationSetupFailed) b.Cleanup(func() { require.NoError(b, db.Close()) @@ -232,7 +232,7 @@ func TestAppImportExport(t *testing.T) { if skip { t.Skip("skipping application import/export simulation") } - require.NoError(t, err, SIMULATION_SETUP_FAILED) + require.NoError(t, err, SimulationSetupFailed) defer func() { require.NoError(t, db.Close()) @@ -297,7 +297,7 @@ func TestAppImportExport(t *testing.T) { simcli.FlagVerboseValue, simcli.FlagEnabledValue, ) - require.NoError(t, err, SIMULATION_SETUP_FAILED) + require.NoError(t, err, SimulationSetupFailed) defer func() { require.NoError(t, newDB.Close()) @@ -386,7 +386,7 @@ func TestAppSimulationAfterImport(t *testing.T) { if skip { t.Skip("skipping application simulation after import") } - require.NoError(t, err, SIMULATION_SETUP_FAILED) + require.NoError(t, err, SimulationSetupFailed) defer func() { require.NoError(t, db.Close()) @@ -457,7 +457,7 @@ func TestAppSimulationAfterImport(t *testing.T) { simcli.FlagVerboseValue, simcli.FlagEnabledValue, ) - require.NoError(t, err, SIMULATION_SETUP_FAILED) + require.NoError(t, err, SimulationSetupFailed) defer func() { require.NoError(t, newDB.Close()) diff --git a/tests/e2e/machine/rest.go b/tests/e2e/machine/rest.go index 28b198ad..cbe28f3f 100644 --- a/tests/e2e/machine/rest.go +++ b/tests/e2e/machine/rest.go @@ -59,8 +59,8 @@ func (s *E2ETestSuite) TestAttestMachineREST() { s.Require().NoError(err) s.Require().Equal(uint32(0), txRes.TxResponse.Code) - queryMachineUrl := fmt.Sprintf("%s/planetmint/machine/get_machine_by_public_key/%s", baseURL, pubKey) - queryMachineRes, err := testutil.GetRequest(queryMachineUrl) + queryMachineURL := fmt.Sprintf("%s/planetmint/machine/get_machine_by_public_key/%s", baseURL, pubKey) + queryMachineRes, err := testutil.GetRequest(queryMachineURL) s.Require().NoError(err) var qmRes machinetypes.QueryGetMachineByPublicKeyResponse diff --git a/testutil/rest.go b/testutil/rest.go index ee26e8d5..03d56b4b 100644 --- a/testutil/rest.go +++ b/testutil/rest.go @@ -142,7 +142,7 @@ func PrepareTx(val *network.Validator, msg sdk.Msg, signer string) ([]byte, erro } func BroadcastTx(val *network.Validator, txBytes []byte) (*txtypes.BroadcastTxResponse, error) { - broadcastTxUrl := fmt.Sprintf("%s/cosmos/tx/v1beta1/txs", val.APIAddress) + broadcastTxURL := fmt.Sprintf("%s/cosmos/tx/v1beta1/txs", val.APIAddress) req := txtypes.BroadcastTxRequest{ TxBytes: txBytes, Mode: txtypes.BroadcastMode_BROADCAST_MODE_SYNC, @@ -152,7 +152,7 @@ func BroadcastTx(val *network.Validator, txBytes []byte) (*txtypes.BroadcastTxRe if err != nil { return nil, err } - broadCastTxResponse, err := PostRequest(broadcastTxUrl, "application/json", broadCastTxBody) + broadCastTxResponse, err := PostRequest(broadcastTxURL, "application/json", broadCastTxBody) if err != nil { return nil, err } diff --git a/util/validate_signature.go b/util/validate_signature.go index bcf955f1..e72d8075 100644 --- a/util/validate_signature.go +++ b/util/validate_signature.go @@ -35,9 +35,8 @@ func ValidateSignatureByteMsg(message []byte, signature string, publicKey string isValid := pubKey.VerifySignature(message, signatureBytes) if !isValid { return false, errors.New("invalid signature") - } else { - return isValid, nil } + return isValid, nil } func GetHexPubKey(extPubKey string) (string, error) { diff --git a/x/asset/client/cli/query.go b/x/asset/client/cli/query.go index 2636682c..bc33e352 100644 --- a/x/asset/client/cli/query.go +++ b/x/asset/client/cli/query.go @@ -14,7 +14,7 @@ import ( ) // GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { +func GetQueryCmd(_ string) *cobra.Command { // Group asset queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, diff --git a/x/asset/keeper/params.go b/x/asset/keeper/params.go index 71fefb2d..c42bce28 100644 --- a/x/asset/keeper/params.go +++ b/x/asset/keeper/params.go @@ -6,7 +6,7 @@ import ( ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { +func (k Keeper) GetParams(_ sdk.Context) types.Params { return types.NewParams() } diff --git a/x/asset/module.go b/x/asset/module.go index c3ab8236..b79e8070 100644 --- a/x/asset/module.go +++ b/x/asset/module.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + // this line is used by starport scaffolding # 1 "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -60,7 +61,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) diff --git a/x/asset/module_simulation.go b/x/asset/module_simulation.go index 106359e5..5bdc4084 100644 --- a/x/asset/module_simulation.go +++ b/x/asset/module_simulation.go @@ -74,7 +74,7 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (am AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return []simtypes.WeightedProposalMsg{ simulation.NewWeightedProposalMsg( opWeightMsgNotarizeAsset, diff --git a/x/asset/simulation/notarize_asset.go b/x/asset/simulation/notarize_asset.go index 31891113..2583d1b9 100644 --- a/x/asset/simulation/notarize_asset.go +++ b/x/asset/simulation/notarize_asset.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgNotarizeAsset( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { diff --git a/x/dao/abci.go b/x/dao/abci.go index 414601b9..002c850c 100644 --- a/x/dao/abci.go +++ b/x/dao/abci.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper) { +func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, _ keeper.Keeper) { logger := ctx.Logger() proposerAddress := req.Header.GetProposerAddress() @@ -36,6 +36,6 @@ func isPoPHeight(height int64) bool { return height%int64(cfg.PoPEpochs) == 0 } -func EndBlocker(ctx sdk.Context, req abci.RequestEndBlock, k keeper.Keeper) { +func EndBlocker(ctx sdk.Context, _ abci.RequestEndBlock, k keeper.Keeper) { k.DistributeCollectedFees(ctx) } diff --git a/x/dao/client/cli/query.go b/x/dao/client/cli/query.go index 0a8ba685..c5bf6c3b 100644 --- a/x/dao/client/cli/query.go +++ b/x/dao/client/cli/query.go @@ -11,7 +11,7 @@ import ( ) // GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { +func GetQueryCmd(_ string) *cobra.Command { // Group dao queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, diff --git a/x/dao/client/cli/tx_reissue_rddl_result.go b/x/dao/client/cli/tx_reissue_rddl_result.go index dacb23d4..ece931ef 100644 --- a/x/dao/client/cli/tx_reissue_rddl_result.go +++ b/x/dao/client/cli/tx_reissue_rddl_result.go @@ -20,7 +20,7 @@ func CmdReissueRDDLResult() *cobra.Command { Args: cobra.ExactArgs(3), RunE: func(cmd *cobra.Command, args []string) (err error) { argProposer := args[0] - argTxId := args[1] + argTxID := args[1] argBlockHeight, err := cast.ToInt64E(args[2]) if err != nil { return err @@ -34,7 +34,7 @@ func CmdReissueRDDLResult() *cobra.Command { msg := types.NewMsgReissueRDDLResult( clientCtx.GetFromAddress().String(), argProposer, - argTxId, + argTxID, argBlockHeight, ) if err := msg.ValidateBasic(); err != nil { diff --git a/x/dao/keeper/params.go b/x/dao/keeper/params.go index 9bb3d4e7..ddb08cf4 100644 --- a/x/dao/keeper/params.go +++ b/x/dao/keeper/params.go @@ -6,7 +6,7 @@ import ( ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { +func (k Keeper) GetParams(_ sdk.Context) types.Params { return types.NewParams() } diff --git a/x/dao/keeper/query_get_reissuances.go b/x/dao/keeper/query_get_reissuances.go index efd89f2f..7181d78e 100644 --- a/x/dao/keeper/query_get_reissuances.go +++ b/x/dao/keeper/query_get_reissuances.go @@ -22,8 +22,7 @@ func (k Keeper) GetReissuances(goCtx context.Context, req *types.QueryGetReissua if reissuances != nil { return &types.QueryGetReissuancesResponse{Reissuance: &reissuances[0]}, nil - } else { - return &types.QueryGetReissuancesResponse{}, nil } + return &types.QueryGetReissuancesResponse{}, nil } diff --git a/x/dao/keeper/reissuance.go b/x/dao/keeper/reissuance.go index d690679a..a50d44f0 100644 --- a/x/dao/keeper/reissuance.go +++ b/x/dao/keeper/reissuance.go @@ -24,7 +24,7 @@ func (k Keeper) LookupReissuance(ctx sdk.Context, height int64) (val types.Reiss return val, true } -func (k Keeper) getReissuancesPage(ctx sdk.Context, key []byte, offset uint64, pageSize uint64, all bool, reverse bool) (reissuances []types.Reissuance) { +func (k Keeper) getReissuancesPage(ctx sdk.Context, _ []byte, _ uint64, _ uint64, _ bool, reverse bool) (reissuances []types.Reissuance) { store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReissuanceBlockHeightKey)) iterator := store.Iterator(nil, nil) diff --git a/x/dao/module.go b/x/dao/module.go index e6140f97..40f18c46 100644 --- a/x/dao/module.go +++ b/x/dao/module.go @@ -62,7 +62,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) diff --git a/x/dao/module_simulation.go b/x/dao/module_simulation.go index c2501e4a..934eeced 100644 --- a/x/dao/module_simulation.go +++ b/x/dao/module_simulation.go @@ -88,7 +88,7 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (am AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return []simtypes.WeightedProposalMsg{ simulation.NewWeightedProposalMsg( opWeightMsgReissueRDDLProposal, diff --git a/x/dao/simulation/mint_token.go b/x/dao/simulation/mint_token.go index 29ae9e57..c3ae02eb 100644 --- a/x/dao/simulation/mint_token.go +++ b/x/dao/simulation/mint_token.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgMintToken( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { diff --git a/x/dao/simulation/reissue_rddl_proposal.go b/x/dao/simulation/reissue_rddl_proposal.go index 88f3311d..ccb0bc38 100644 --- a/x/dao/simulation/reissue_rddl_proposal.go +++ b/x/dao/simulation/reissue_rddl_proposal.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgReissueRDDLProposal( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { diff --git a/x/dao/simulation/reissue_rddl_result.go b/x/dao/simulation/reissue_rddl_result.go index ff2c8807..cfb37dfd 100644 --- a/x/dao/simulation/reissue_rddl_result.go +++ b/x/dao/simulation/reissue_rddl_result.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgReissueRDDLResult( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { diff --git a/x/dao/types/message_reissue_rddl_result.go b/x/dao/types/message_reissue_rddl_result.go index 115a6968..6f186082 100644 --- a/x/dao/types/message_reissue_rddl_result.go +++ b/x/dao/types/message_reissue_rddl_result.go @@ -10,11 +10,11 @@ const TypeMsgReissueRDDLResult = "reissue_rddl_result" var _ sdk.Msg = &MsgReissueRDDLResult{} -func NewMsgReissueRDDLResult(creator string, proposer string, txId string, blockHeight int64) *MsgReissueRDDLResult { +func NewMsgReissueRDDLResult(creator string, proposer string, txID string, blockHeight int64) *MsgReissueRDDLResult { return &MsgReissueRDDLResult{ Creator: creator, Proposer: proposer, - TxId: txId, + TxId: txID, BlockHeight: blockHeight, } } diff --git a/x/dao/util.go b/x/dao/util.go index 1f17fd7e..14a82d23 100644 --- a/x/dao/util.go +++ b/x/dao/util.go @@ -1,10 +1,10 @@ package dao -func GetReissuanceCommand(assetID string, BlockHeight int64) string { +func GetReissuanceCommand(assetID string, _ int64) string { return "reissueasset " + assetID + " 99869000000" } -func IsValidReissuanceCommand(reissuanceStr string, assetID string, BlockHeight int64) bool { +func IsValidReissuanceCommand(reissuanceStr string, assetID string, _ int64) bool { expected := "reissueasset " + assetID + " 99869000000" return reissuanceStr == expected } diff --git a/x/machine/client/cli/query.go b/x/machine/client/cli/query.go index c3975ee5..548a2df9 100644 --- a/x/machine/client/cli/query.go +++ b/x/machine/client/cli/query.go @@ -14,7 +14,7 @@ import ( ) // GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { +func GetQueryCmd(_ string) *cobra.Command { // Group machine queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, diff --git a/x/machine/keeper/machine.go b/x/machine/keeper/machine.go index e0271059..a77ab2f1 100644 --- a/x/machine/keeper/machine.go +++ b/x/machine/keeper/machine.go @@ -39,13 +39,13 @@ func (k Keeper) StoreMachineIndex(ctx sdk.Context, machine types.Machine) { Address: machine.Address, } - machineIdIndexKey := GetMachineBytes(machine.MachineId) + machineIDIndexKey := GetMachineBytes(machine.MachineId) issuerPlanetmintIndexKey := GetMachineBytes(machine.IssuerPlanetmint) issuerLiquidIndexKey := GetMachineBytes(machine.IssuerLiquid) addressIndexKey := GetMachineBytes(machine.Address) indexAppendValue := k.cdc.MustMarshal(&index) - taIndexStore.Set(machineIdIndexKey, indexAppendValue) + taIndexStore.Set(machineIDIndexKey, indexAppendValue) issuerPlanetmintIndexStore.Set(issuerPlanetmintIndexKey, indexAppendValue) issuerLiquidIndexStore.Set(issuerLiquidIndexKey, indexAppendValue) addressIndexStore.Set(addressIndexKey, indexAppendValue) diff --git a/x/machine/keeper/machine_test.go b/x/machine/keeper/machine_test.go index d09df017..c418d2e1 100644 --- a/x/machine/keeper/machine_test.go +++ b/x/machine/keeper/machine_test.go @@ -35,9 +35,9 @@ func TestGetMachine(t *testing.T) { IssuerLiquid: item.IssuerLiquid, Address: item.Address, } - machineById, found := keeper.GetMachine(ctx, index) + machineByID, found := keeper.GetMachine(ctx, index) assert.True(t, found) - assert.Equal(t, item, machineById) + assert.Equal(t, item, machineByID) } } diff --git a/x/machine/keeper/msg_server_attest_machine.go b/x/machine/keeper/msg_server_attest_machine.go index 44f19a8c..404a9e49 100644 --- a/x/machine/keeper/msg_server_attest_machine.go +++ b/x/machine/keeper/msg_server_attest_machine.go @@ -30,8 +30,8 @@ func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMach // and removed from here due to inconsistency or checking the same thing over and over again. ta, _, _ := k.GetTrustAnchor(ctx, msg.Machine.MachineId) - isValidMachineId, err := util.ValidateSignature(msg.Machine.MachineId, msg.Machine.MachineIdSignature, msg.Machine.MachineId) - if !isValidMachineId { + isValidMachineID, err := util.ValidateSignature(msg.Machine.MachineId, msg.Machine.MachineIdSignature, msg.Machine.MachineId) + if !isValidMachineID { return nil, err } diff --git a/x/machine/keeper/params.go b/x/machine/keeper/params.go index 3b8d724b..5ace3064 100644 --- a/x/machine/keeper/params.go +++ b/x/machine/keeper/params.go @@ -6,7 +6,7 @@ import ( ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { +func (k Keeper) GetParams(_ sdk.Context) types.Params { return types.NewParams() } diff --git a/x/machine/keeper/trust_anchor.go b/x/machine/keeper/trust_anchor.go index 993df7bc..da0cb8e5 100644 --- a/x/machine/keeper/trust_anchor.go +++ b/x/machine/keeper/trust_anchor.go @@ -43,9 +43,8 @@ func (k Keeper) GetTrustAnchor(ctx sdk.Context, pubKey string) (val types.TrustA val.Pubkey = pubKey if trustAnchorActivated[0] == 1 { return val, true, true - } else { - return val, false, true } + return val, false, true } func getTrustAnchorBytes(pubKey string) ([]byte, error) { diff --git a/x/machine/module.go b/x/machine/module.go index 8e574d92..f6c21123 100644 --- a/x/machine/module.go +++ b/x/machine/module.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + // this line is used by starport scaffolding # 1 "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -60,7 +61,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) diff --git a/x/machine/module_simulation.go b/x/machine/module_simulation.go index 1330ef98..171b1f29 100644 --- a/x/machine/module_simulation.go +++ b/x/machine/module_simulation.go @@ -89,7 +89,7 @@ func (am AppModule) WeightedOperations(simState module.SimulationState) []simtyp } // ProposalMsgs returns msgs used for governance proposals for simulations. -func (am AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (am AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg { return []simtypes.WeightedProposalMsg{ simulation.NewWeightedProposalMsg( opWeightMsgAttestMachine, diff --git a/x/machine/simulation/attest_machine.go b/x/machine/simulation/attest_machine.go index 1fccdeb9..500b7587 100644 --- a/x/machine/simulation/attest_machine.go +++ b/x/machine/simulation/attest_machine.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgAttestMachine( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { diff --git a/x/machine/simulation/register_trust_anchor.go b/x/machine/simulation/register_trust_anchor.go index d341128e..00fb60ca 100644 --- a/x/machine/simulation/register_trust_anchor.go +++ b/x/machine/simulation/register_trust_anchor.go @@ -11,9 +11,9 @@ import ( ) func SimulateMsgRegisterTrustAnchor( - ak types.AccountKeeper, - bk types.BankKeeper, - k keeper.Keeper, + _ types.AccountKeeper, + _ types.BankKeeper, + _ keeper.Keeper, ) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) {