Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: app.go const lint #896

Merged
merged 4 commits into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ import (
)

const (
// mission ID for staking mission to claim airdrop
MISSION_ID_STAKING = 1
// missionIDStaking is the mission ID for staking mission to claim airdrop
missionIDStaking = 1

// mission ID for voting mission to claim airdrop
MISSION_ID_VOTING = 2
// missionIDVoting is the mission ID for voting mission to claim airdrop
missionIDVoting = 2
)

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals
Expand Down Expand Up @@ -543,14 +543,14 @@ func New(
stakingtypes.NewMultiStakingHooks(
app.DistrKeeper.Hooks(),
app.SlashingKeeper.Hooks(),
app.ClaimKeeper.NewMissionDelegationHooks(MISSION_ID_STAKING),
app.ClaimKeeper.NewMissionDelegationHooks(missionIDStaking),
),
)

// register the gov hooks
app.GovKeeper = *app.GovKeeper.SetHooks(
govtypes.NewMultiGovHooks(
app.ClaimKeeper.NewMissionVoteHooks(MISSION_ID_VOTING),
app.ClaimKeeper.NewMissionVoteHooks(missionIDVoting),
),
)

Expand Down