store.Delete instead of store.Set to nil
This commit is contained in:
parent
40526d3e77
commit
4e266013a8
|
@ -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)
|
||||
}
|
||||
|
||||
//__________________________________________________________________________
|
||||
|
|
Loading…
Reference in New Issue