From fdc1f492d37997238f99436c0946e7c1cf7f8e5d Mon Sep 17 00:00:00 2001 From: "jaeseung.bae" Date: Mon, 13 May 2024 10:48:52 +0900 Subject: [PATCH] chore: lint fix --- crypto/keys/multisig/codec.go | 1 - x/fswap/keeper/keeper.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/keys/multisig/codec.go b/crypto/keys/multisig/codec.go index 2153acfb79..7a18b51aed 100644 --- a/crypto/keys/multisig/codec.go +++ b/crypto/keys/multisig/codec.go @@ -15,7 +15,6 @@ const ( PubKeyAminoRoute = "tendermint/PubKeyMultisigThreshold" ) -// nolint // Deprecated: Amino is being deprecated in the SDK. But even if you need to // use Amino for some reason, please use `codec/legacy.Cdc` instead. var AminoCdc = codec.NewLegacyAmino() diff --git a/x/fswap/keeper/keeper.go b/x/fswap/keeper/keeper.go index 6b153150a1..7686c3af5d 100644 --- a/x/fswap/keeper/keeper.go +++ b/x/fswap/keeper/keeper.go @@ -319,7 +319,7 @@ func (k Keeper) increaseSwapCount(ctx sdk.Context) error { } prev := stats.SwapCount - stats.SwapCount += 1 + stats.SwapCount++ if stats.SwapCount < prev { return types.ErrInvalidState.Wrap("overflow detected") }