Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed Sep 9, 2024
1 parent a326931 commit 47805e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions protocol/x/affiliates/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,7 @@ func (k Keeper) GetTierForAffiliate(
// Used primarily through governance.
func (k Keeper) UpdateAffiliateTiers(ctx sdk.Context, affiliateTiers types.AffiliateTiers) error {
store := ctx.KVStore(k.storeKey)
affiliateTiersBytes, err := k.cdc.Marshal(&affiliateTiers)
if err != nil {
return errorsmod.Wrapf(types.ErrInvalidAffiliateTiers,
"error marshalling affiliate tiers: %s", err)
}
affiliateTiersBytes := k.cdc.MustMarshal(&affiliateTiers)
tiers := affiliateTiers.GetTiers()
// start at 1, since 0 is the default tier.
for i := 1; i < len(tiers); i++ {
Expand Down

0 comments on commit 47805e1

Please sign in to comment.