Skip to content

Commit

Permalink
remove setting inside get
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbhat1 committed Apr 18, 2024
1 parent 3d87025 commit 021b981
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/params/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func (k Keeper) GetFeesParams(ctx sdk.Context) types.FeesParams {

if !subspace.Has(ctx, types.ParamStoreKeyFeesParams) {
defaultParams := *types.DefaultFeesParams()
k.SetFeesParams(ctx, defaultParams)
return defaultParams
}

Expand All @@ -74,7 +73,6 @@ func (k Keeper) GetCosmosGasParams(ctx sdk.Context) types.CosmosGasParams {
var cosmosGasParams types.CosmosGasParams
if !subspace.Has(ctx, types.ParamStoreKeyCosmosGasParams) {
defaultParams := *types.DefaultCosmosGasParams()
k.SetCosmosGasParams(ctx, defaultParams)
return defaultParams
}

Expand Down

0 comments on commit 021b981

Please sign in to comment.