From 781c20bf513ebb9372e319baacd2b6f94d8832f6 Mon Sep 17 00:00:00 2001 From: Dong Lieu Date: Mon, 15 Jan 2024 18:09:30 +0700 Subject: [PATCH] rename --- x/multi-staking/keeper/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/multi-staking/keeper/store.go b/x/multi-staking/keeper/store.go index 47fd6ce4..df56c5ae 100644 --- a/x/multi-staking/keeper/store.go +++ b/x/multi-staking/keeper/store.go @@ -155,7 +155,7 @@ func (k Keeper) BondWeightIterator(ctx sdk.Context, cb func(denom string, bondWe func (k Keeper) GetMultiStakingUnlock(ctx sdk.Context, multiStakingUnlockID types.UnlockID) (unlock types.MultiStakingUnlock, found bool) { store := ctx.KVStore(k.storeKey) - value := store.Get(multiStakingUnlockID.ToBytes()) + value := store.Get(multiStakingUnlockID.ToByte()) if value == nil { return unlock, false @@ -173,11 +173,11 @@ func (k Keeper) SetMultiStakingUnlock(ctx sdk.Context, unlock types.MultiStaking bz := k.cdc.MustMarshal(&unlock) - store.Set(unlock.UnlockID.ToBytes(), bz) + store.Set(unlock.UnlockID.ToByte(), bz) } func (k Keeper) DeleteMultiStakingUnlock(ctx sdk.Context, unlockID types.UnlockID) { store := ctx.KVStore(k.storeKey) - store.Delete(unlockID.ToBytes()) + store.Delete(unlockID.ToByte()) }