Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcompagni10 committed Sep 23, 2024
1 parent 0c6e58a commit 1875182
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions app/upgrades/v5.0.0/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ func upgradeDexPause(ctx sdk.Context, k dexkeeper.Keeper) error {

params := k.GetParams(ctx)
params.Paused = true
k.SetParams(ctx, params)

ctx.Logger().Info("Dex is paused ")
if err := k.SetParams(ctx, params); err != nil {
return err
}

ctx.Logger().Info("Dex is paused")

return nil
}
4 changes: 2 additions & 2 deletions app/upgrades/v5.0.0/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (

"cosmossdk.io/math"
upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/stretchr/testify/suite"

v500 "github.com/neutron-org/neutron/v4/app/upgrades/v5.0.0"
"github.com/neutron-org/neutron/v4/testutil/common/sample"
math_utils "github.com/neutron-org/neutron/v4/utils/math"
"github.com/stretchr/testify/suite"

"github.com/neutron-org/neutron/v4/testutil"
dexkeeper "github.com/neutron-org/neutron/v4/x/dex/keeper"
Expand Down Expand Up @@ -60,5 +61,4 @@ func (suite *UpgradeTestSuite) TestUpgradeDexPause() {
})

suite.ErrorIs(err, dextypes.ErrDexPaused)

}

0 comments on commit 1875182

Please sign in to comment.