Skip to content

Commit

Permalink
remove dup import
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerKSI committed Feb 3, 2024
1 parent 3604f9a commit 46fc5a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ linters:
disable-all: true
enable:
- bodyclose
- depguard
- gofmt
- goimports
- misspell
Expand Down
5 changes: 2 additions & 3 deletions x/globalfee/feechecker/feechecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package feechecker
import (
"math"

"cosmossdk.io/errors"
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand Down Expand Up @@ -77,7 +76,7 @@ func (fc FeeChecker) CheckTxFeeWithMinGasPrices(
}

if !allFees.IsZero() && !feeCoins.IsAnyGTE(allFees) {
return nil, 0, errors.Wrapf(
return nil, 0, errorsmod.Wrapf(
sdkerrors.ErrInsufficientFee,
"insufficient fees; got: %s required: %s",
feeCoins,
Expand Down Expand Up @@ -126,7 +125,7 @@ func (fc FeeChecker) GetGlobalMinGasPrices(ctx sdk.Context) (sdk.DecCoins, error
func (fc FeeChecker) DefaultZeroGlobalFee(ctx sdk.Context) ([]sdk.DecCoin, error) {
bondDenom := fc.GetBondDenom(ctx)
if bondDenom == "" {
return nil, errors.Wrap(sdkerrors.ErrNotFound, "empty staking bond denomination")
return nil, errorsmod.Wrap(sdkerrors.ErrNotFound, "empty staking bond denomination")
}

return []sdk.DecCoin{sdk.NewDecCoinFromDec(bondDenom, sdk.NewDec(0))}, nil
Expand Down

0 comments on commit 46fc5a6

Please sign in to comment.