Skip to content

Commit

Permalink
Suppress noisy chainID logs (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 authored Oct 11, 2024
1 parent c613181 commit fc9a0bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/evm/ante/sig.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ func (svd *EVMSigVerifyDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
case ethtypes.LegacyTxType:
// legacy either can have a zero or correct chain ID
if txChainID.Cmp(big.NewInt(0)) != 0 && txChainID.Cmp(chainID) != 0 {
ctx.Logger().Error("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID)
ctx.Logger().Debug("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID)
return ctx, sdkerrors.ErrInvalidChainID
}
default:
// after legacy, all transactions must have the correct chain ID
if txChainID.Cmp(chainID) != 0 {
ctx.Logger().Error("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID)
ctx.Logger().Debug("chainID mismatch", "txChainID", ethTx.ChainId(), "chainID", chainID)
return ctx, sdkerrors.ErrInvalidChainID
}
}
Expand Down

0 comments on commit fc9a0bd

Please sign in to comment.