From 47805e1026ba069c6edac19e00694f9b7af73160 Mon Sep 17 00:00:00 2001 From: affan Date: Mon, 9 Sep 2024 15:55:31 -0400 Subject: [PATCH] fix nit --- protocol/x/affiliates/keeper/keeper.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protocol/x/affiliates/keeper/keeper.go b/protocol/x/affiliates/keeper/keeper.go index c00f8472f63..81108e9df5d 100644 --- a/protocol/x/affiliates/keeper/keeper.go +++ b/protocol/x/affiliates/keeper/keeper.go @@ -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++ {