Skip to content

Commit

Permalink
fix to errors.Is
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 26, 2024
1 parent e91f4ff commit 742c8d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/evm/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package keeper

import (
"context"
"errors"

"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/tracing"
Expand Down Expand Up @@ -207,7 +208,7 @@ func (ms *msgServerImpl) UpdateParams(ctx context.Context, msg *types.MsgUpdateP
// testFeeDenom tests if the fee denom has sudoMint and sudoBurn.
func (ms *msgServerImpl) testFeeDenom(ctx context.Context, params types.Params) (err error) {
_, err = types.DenomToContractAddr(ctx, ms, params.FeeDenom)
if err != nil && err == collections.ErrNotFound {
if err != nil && errors.Is(err, collections.ErrNotFound) {
return types.ErrInvalidFeeDenom.Wrap("fee denom is not found")
} else if err != nil {
return err
Expand Down

0 comments on commit 742c8d4

Please sign in to comment.