From f0be4eb41eb8545c3ebb3777f623fd2690d6a13e Mon Sep 17 00:00:00 2001 From: 170210 Date: Wed, 24 Apr 2024 14:16:51 +0900 Subject: [PATCH] fix: fix lint Signed-off-by: 170210 --- x/fswap/keeper/fswap.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x/fswap/keeper/fswap.go b/x/fswap/keeper/fswap.go index 3e102ea89b..3ecb2f3b12 100644 --- a/x/fswap/keeper/fswap.go +++ b/x/fswap/keeper/fswap.go @@ -32,17 +32,17 @@ func (k Keeper) SetSwapped(ctx sdk.Context, swapped types.Swapped) error { func (k Keeper) GetSwappableNewCoinAmount(ctx sdk.Context) sdk.Coin { store := ctx.KVStore(k.storeKey) bz := store.Get([]byte{types.SwappableNewCoinAmountKey}) - var SwappableNewCoinAmount sdk.Coin + var swappableNewCoinAmount sdk.Coin if bz == nil { panic(types.ErrSwappableNewCoinAmountNotFound) } - k.cdc.MustUnmarshal(bz, &SwappableNewCoinAmount) - return SwappableNewCoinAmount + k.cdc.MustUnmarshal(bz, &swappableNewCoinAmount) + return swappableNewCoinAmount } -func (k Keeper) SetSwappableNewCoinAmount(ctx sdk.Context, SwappableNewCoinAmount sdk.Coin) error { +func (k Keeper) SetSwappableNewCoinAmount(ctx sdk.Context, swappableNewCoinAmount sdk.Coin) error { store := ctx.KVStore(k.storeKey) - bz, err := k.cdc.Marshal(&SwappableNewCoinAmount) + bz, err := k.cdc.Marshal(&swappableNewCoinAmount) if err != nil { return err }