Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 18, 2024
1 parent c69aa19 commit f5e6e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/simulation/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ type WeightedProposalContent struct {
contentSimulatorFn simulation.ContentSimulatorFn // content simulator function

Check failure on line 167 in x/simulation/params.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: simulation.ContentSimulatorFn is deprecated: Use MsgSimulatorFn instead. (staticcheck)
}

func NewWeightedProposalContent(appParamsKey string, defaultWeight int, contentSimulatorFn simulation.ContentSimulatorFn) simulation.WeightedProposalContent {
func NewWeightedProposalContent(appParamsKey string, defaultWeight int, contentSimulatorFn simulation.ContentSimulatorFn) simulation.WeightedProposalContent {

Check failure on line 170 in x/simulation/params.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: simulation.ContentSimulatorFn is deprecated: Use MsgSimulatorFn instead. (staticcheck)
return &WeightedProposalContent{appParamsKey: appParamsKey, defaultWeight: defaultWeight, contentSimulatorFn: contentSimulatorFn}
}

Expand All @@ -179,7 +179,7 @@ func (w WeightedProposalContent) DefaultWeight() int {
return w.defaultWeight
}

func (w WeightedProposalContent) ContentSimulatorFn() simulation.ContentSimulatorFn {
func (w WeightedProposalContent) ContentSimulatorFn() simulation.ContentSimulatorFn {

Check failure on line 182 in x/simulation/params.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: simulation.ContentSimulatorFn is deprecated: Use MsgSimulatorFn instead. (staticcheck)
return w.contentSimulatorFn
}

Expand Down

0 comments on commit f5e6e36

Please sign in to comment.