Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <[email protected]>
  • Loading branch information
170210 committed Apr 24, 2024
1 parent c2a9b61 commit f0be4eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/fswap/keeper/fswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f0be4eb

Please sign in to comment.