From 4e266013a8ffcbf9a9a9a5545c2f8bbcbd0e2906 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 31 May 2018 00:13:13 +0200 Subject: [PATCH] store.Delete instead of store.Set to nil --- x/stake/keeper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/stake/keeper.go b/x/stake/keeper.go index c97e7840e1..4f93308c73 100644 --- a/x/stake/keeper.go +++ b/x/stake/keeper.go @@ -682,8 +682,8 @@ func (k Keeper) setCliffValidator(ctx sdk.Context, validator Validator, pool Poo // clear the current validator and power of the validator on the cliff func (k Keeper) clearCliffValidator(ctx sdk.Context) { store := ctx.KVStore(k.storeKey) - store.Set(ValidatorPowerCliffKey, nil) - store.Set(ValidatorCliffKey, nil) + store.Delete(ValidatorPowerCliffKey) + store.Delete(ValidatorCliffKey) } //__________________________________________________________________________