Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jan 27, 2025
1 parent d77af30 commit 1094a7c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
10 changes: 5 additions & 5 deletions x/migration/keeper/msg_server_upload_morse_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package keeper
import (
"context"

"github.com/pokt-network/poktroll/x/migration/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)

"github.com/pokt-network/poktroll/x/migration/types"
)

func (k msgServer) UploadMorseState(goCtx context.Context, msg *types.MsgUploadMorseState) (*types.MsgUploadMorseStateResponse, error) {
func (k msgServer) UploadMorseState(goCtx context.Context, msg *types.MsgUploadMorseState) (*types.MsgUploadMorseStateResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)

// TODO: Handling the message
_ = ctx
// TODO: Handling the message
_ = ctx

return &types.MsgUploadMorseStateResponse{}, nil
}
22 changes: 11 additions & 11 deletions x/migration/module/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
)

const (
opWeightMsgUploadMorseState = "op_weight_msg_upload_morse_state"
opWeightMsgUploadMorseState = "op_weight_msg_upload_morse_state"
// TODO: Determine the simulation weight value
defaultWeightMsgUploadMorseState int = 100

Expand All @@ -37,7 +37,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs[i] = acc.Address.String()
}
migrationGenesis := types.GenesisState{
Params: types.DefaultParams(),
Params: types.DefaultParams(),
// this line is used by starport scaffolding # simapp/module/genesisState
}
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&migrationGenesis)
Expand Down Expand Up @@ -69,14 +69,14 @@ 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 {
return []simtypes.WeightedProposalMsg{
simulation.NewWeightedProposalMsg(
opWeightMsgUploadMorseState,
defaultWeightMsgUploadMorseState,
func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg {
migrationsimulation.SimulateMsgUploadMorseState(am.accountKeeper, am.bankKeeper, am.keeper)
return nil
},
),
// this line is used by starport scaffolding # simapp/module/OpMsg
simulation.NewWeightedProposalMsg(
opWeightMsgUploadMorseState,
defaultWeightMsgUploadMorseState,
func(r *rand.Rand, ctx sdk.Context, accs []simtypes.Account) sdk.Msg {
migrationsimulation.SimulateMsgUploadMorseState(am.accountKeeper, am.bankKeeper, am.keeper)
return nil
},
),
// this line is used by starport scaffolding # simapp/module/OpMsg
}
}
5 changes: 3 additions & 2 deletions x/migration/simulation/upload_morse_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package simulation
import (
"math/rand"

"github.com/pokt-network/poktroll/x/migration/keeper"
"github.com/pokt-network/poktroll/x/migration/types"
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"

"github.com/pokt-network/poktroll/x/migration/keeper"
"github.com/pokt-network/poktroll/x/migration/types"
)

func SimulateMsgUploadMorseState(
Expand Down
6 changes: 3 additions & 3 deletions x/migration/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUploadMorseState{},
)
// this line is used by starport scaffolding # 3
&MsgUploadMorseState{},
)
// this line is used by starport scaffolding # 3

registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgUpdateParams{},
Expand Down
1 change: 1 addition & 0 deletions x/migration/types/message_upload_morse_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/stretchr/testify/require"

"github.com/pokt-network/poktroll/testutil/sample"
)

Expand Down

0 comments on commit 1094a7c

Please sign in to comment.