From d662505a672ca11e137f251d2f87e50fa22aafe1 Mon Sep 17 00:00:00 2001 From: rustdev Date: Tue, 19 Mar 2024 16:46:50 +0000 Subject: [PATCH] fix lint --- custom/ibc-transfer/keeper/msg_server.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/custom/ibc-transfer/keeper/msg_server.go b/custom/ibc-transfer/keeper/msg_server.go index 991bc55b..bb9b825f 100644 --- a/custom/ibc-transfer/keeper/msg_server.go +++ b/custom/ibc-transfer/keeper/msg_server.go @@ -31,7 +31,7 @@ func (k msgServer) Transfer(goCtx context.Context, msg *types.MsgTransfer) (*typ channelFee := findChannelParams(params.ChannelFees, msg.SourceChannel) if channelFee != nil { if channelFee.MinTimeoutTimestamp > 0 && msg.TimeoutTimestamp < channelFee.MinTimeoutTimestamp { - return nil, ErrInvalidTimeoutTimestamp + return nil, fmt.Errorf("incorrect timeout timestamp found during ibc transfer") } coin := findCoinByDenom(channelFee.AllowedTokens, msg.Token.Denom) if coin != nil { @@ -92,7 +92,3 @@ func findCoinByDenom(allowedTokens []*ibctransfermiddlewaretypes.CoinItem, denom } return nil // If the denom is not found } - -var ( - ErrInvalidTimeoutTimestamp = fmt.Errorf("proto: incorrect timeout timestamp found during ibc transfer") -)