Skip to content

Commit

Permalink
Add linter fix for populating new param with deprecated param.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Witkowski committed Sep 11, 2023
1 parent 5aa7526 commit ed33909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ func setupICQ(ctx sdk.Context, app *App) {
func updateMaxSupply(ctx sdk.Context, app *App) {
ctx.Logger().Info("Updating MaxSupply marker param")
params := app.MarkerKeeper.GetParams(ctx)
//nolint:staticcheck // Populate new param with deprecated param
params.MaxSupply = math.NewIntFromUint64(params.MaxTotalSupply)
app.MarkerKeeper.SetParams(ctx, params)
ctx.Logger().Info("Done updating MaxSupply marker param")
Expand Down

0 comments on commit ed33909

Please sign in to comment.