Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Jan 15, 2024
1 parent c698ef9 commit 781c20b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/multi-staking/keeper/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())
}

0 comments on commit 781c20b

Please sign in to comment.