Skip to content

Commit

Permalink
fix: wrong interface cast
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig committed Jul 11, 2024
1 parent 2db4512 commit 829a7d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/upgrades/v8_1/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package v8_1
import (
"github.com/classic-terra/core/v3/app/keepers"
"github.com/classic-terra/core/v3/app/upgrades"
treasurykeeper "github.com/classic-terra/core/v3/x/treasury/keeper"
treasurytypes "github.com/classic-terra/core/v3/x/treasury/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
Expand All @@ -19,7 +18,7 @@ func CreateV81UpgradeHandler(
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, _ upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
// set default oracle split
mm.Modules[treasurytypes.ModuleName].(*treasurykeeper.Keeper).SetOracleSplitRate(ctx, treasurytypes.DefaultOracleSplit)
keepers.TreasuryKeeper.SetOracleSplitRate(ctx, treasurytypes.DefaultOracleSplit)

Check failure on line 21 in app/upgrades/v8_1/upgrades.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed (gofumpt)
return mm.RunMigrations(ctx, cfg, fromVM)
}
}

0 comments on commit 829a7d2

Please sign in to comment.