Skip to content

Commit

Permalink
refactor: make sudoKeeper a private field
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed May 1, 2024
1 parent b61ac70 commit 0bc3a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/oracle/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Keeper struct {
distrKeeper types.DistributionKeeper
StakingKeeper types.StakingKeeper
slashingKeeper types.SlashingKeeper
SudoKeeper types.SudoKeeper
sudoKeeper types.SudoKeeper

distrModuleName string

Expand Down Expand Up @@ -76,7 +76,7 @@ func NewKeeper(
distrKeeper: distrKeeper,
StakingKeeper: stakingKeeper,
slashingKeeper: slashingKeeper,
SudoKeeper: sudoKeeper,
sudoKeeper: sudoKeeper,
distrModuleName: distrName,
Params: collections.NewItem(storeKey, 11, collections.ProtoValueEncoder[types.Params](cdc)),
ExchangeRates: collections.NewMap(storeKey, 1, asset.PairKeyEncoder, collections.ProtoValueEncoder[types.DatedPrice](cdc)),
Expand Down
2 changes: 1 addition & 1 deletion x/oracle/keeper/sudo.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (k sudoExtension) EditOracleParams(
ctx sdk.Context, newParams oracletypes.MsgEditOracleParams,
sender sdk.AccAddress,
) (paramsAfter oracletypes.Params, err error) {
if err := k.SudoKeeper.CheckPermissions(sender, ctx); err != nil {
if err := k.sudoKeeper.CheckPermissions(sender, ctx); err != nil {
return paramsAfter, err
}

Expand Down

0 comments on commit 0bc3a6a

Please sign in to comment.