diff --git a/simapp/utils_test.go b/simapp/utils_test.go index 8cea79ab7775..78eb1be748a3 100644 --- a/simapp/utils_test.go +++ b/simapp/utils_test.go @@ -149,7 +149,7 @@ func TestDecodeDistributionStore(t *testing.T) { cmn.KVPair{Key: distr.GetValidatorHistoricalRewardsKey(valAddr1, 100), Value: cdc.MustMarshalBinaryLengthPrefixed(historicalRewards)}, cmn.KVPair{Key: distr.GetValidatorCurrentRewardsKey(valAddr1), Value: cdc.MustMarshalBinaryLengthPrefixed(currentRewards)}, cmn.KVPair{Key: distr.GetValidatorAccumulatedCommissionKey(valAddr1), Value: cdc.MustMarshalBinaryLengthPrefixed(commission)}, - cmn.KVPair{Key: distr.GetValidatorSlashEventKey(valAddr1, 13), Value: cdc.MustMarshalBinaryLengthPrefixed(slashEvent)}, + cmn.KVPair{Key: distr.GetValidatorSlashEventKeyPrefix(valAddr1, 13), Value: cdc.MustMarshalBinaryLengthPrefixed(slashEvent)}, cmn.KVPair{Key: []byte{0x99}, Value: []byte{0x99}}, } diff --git a/x/distribution/alias.go b/x/distribution/alias.go index 4c898251f184..165a8d6934cd 100644 --- a/x/distribution/alias.go +++ b/x/distribution/alias.go @@ -64,6 +64,7 @@ var ( GetValidatorAccumulatedCommissionKey = keeper.GetValidatorAccumulatedCommissionKey GetValidatorSlashEventPrefix = keeper.GetValidatorSlashEventPrefix GetValidatorSlashEventKey = keeper.GetValidatorSlashEventKey + GetValidatorSlashEventKeyPrefix = keeper.GetValidatorSlashEventKeyPrefix ParamKeyTable = keeper.ParamKeyTable HandleCommunityPoolSpendProposal = keeper.HandleCommunityPoolSpendProposal NewQuerier = keeper.NewQuerier