Skip to content

Commit

Permalink
Removed unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kirdatatjana committed Oct 25, 2024
1 parent a1d974d commit 9f4d771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions x/ccv/provider/client/legacy_proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type ConsumerAdditionProposalJSON struct {
Denylist []string `json:"denylist"`
MinStake uint64 `json:"min_stake"`
AllowInactiveVals bool `json:"allow_inactive_vals"`
Prioritylist []string `json:"prioritylist"`
}

type ConsumerAdditionProposalReq struct {
Expand Down Expand Up @@ -176,6 +177,7 @@ type ConsumerModificationProposalJSON struct {
Denylist []string `json:"denylist"`
MinStake uint64 `json:"min_stake"`
AllowInactiveVals bool `json:"allow_inactive_vals"`
Prioritylist []string `json:"prioritylist"`

Deposit string `json:"deposit"`
}
Expand Down
3 changes: 1 addition & 2 deletions x/ccv/provider/keeper/power_shaping.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

"github.com/cosmos/interchain-security/v6/x/ccv/provider/types"
providertypes "github.com/cosmos/interchain-security/v6/x/ccv/provider/types"
ccvtypes "github.com/cosmos/interchain-security/v6/x/ccv/types"
)

Expand Down Expand Up @@ -637,7 +636,7 @@ func (k Keeper) PartitionBasedOnPriorityList(ctx sdk.Context, consumerId string,

// Form priorityValidators
for _, validator := range nextValidators {
addr := providertypes.NewProviderConsAddress(validator.ProviderConsAddr)
addr := types.NewProviderConsAddress(validator.ProviderConsAddr)
if k.IsPrioritylisted(ctx, consumerId, addr) {
priorityValidators = append(priorityValidators, validator)
} else {
Expand Down

0 comments on commit 9f4d771

Please sign in to comment.