Skip to content

Commit

Permalink
remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 1, 2024
1 parent 7b17dde commit 24e7ccf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,17 @@ func NewInitiaApp(

// Setup keepers
app.AppKeepers = keepers.NewAppKeeper(
app.ac, app.vc, app.cc,
appCodec,
bApp,
legacyAmino,
maccPerms,
moduleAccountAddresses,
blockedModuleAccountAddrs,
skipUpgradeHeights,
homePath,
invCheckPeriod,
logger,
moveConfig,
oracleConfig,
appOpts,
)

Expand Down
10 changes: 2 additions & 8 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keepers
import (
"os"

"cosmossdk.io/core/address"
"cosmossdk.io/log"
storetypes "cosmossdk.io/store/types"
evidencetypes "cosmossdk.io/x/evidence/types"
Expand All @@ -16,7 +17,6 @@ import (
"github.com/cosmos/cosmos-sdk/runtime"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"
authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper"
Expand Down Expand Up @@ -94,7 +94,6 @@ import (

// slinky oracle dependencies

oracleconfig "github.com/skip-mev/slinky/oracle/config"
marketmapkeeper "github.com/skip-mev/slinky/x/marketmap/keeper"
marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types"
oraclekeeper "github.com/skip-mev/slinky/x/oracle/keeper"
Expand Down Expand Up @@ -160,18 +159,17 @@ type AppKeepers struct {
}

func NewAppKeeper(
ac, vc, cc address.Codec,
appCodec codec.Codec,
bApp *baseapp.BaseApp,
legacyAmino *codec.LegacyAmino,
maccPerms map[string][]string,
modAccAddrs map[string]bool,
blockedAddress map[string]bool,
skipUpgradeHeights map[int64]bool,
homePath string,
invCheckPeriod uint,
logger log.Logger,
moveConfig moveconfig.MoveConfig,
oracleConfig oracleconfig.AppConfig,
appOpts servertypes.AppOptions,
) AppKeepers {
appKeepers := AppKeepers{}
Expand All @@ -185,10 +183,6 @@ func NewAppKeeper(
os.Exit(1)
}

Check warning on line 184 in app/keepers/keepers.go

View check run for this annotation

Codecov / codecov/patch

app/keepers/keepers.go#L182-L184

Added lines #L182 - L184 were not covered by tests

ac := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix())
vc := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix())
cc := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix())

authorityAccAddr := authtypes.NewModuleAddress(govtypes.ModuleName)
authorityAddr, err := ac.BytesToString(authorityAccAddr)
if err != nil {
Expand Down

0 comments on commit 24e7ccf

Please sign in to comment.