Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja committed Mar 19, 2024
1 parent 1998892 commit d662505
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom/ibc-transfer/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
)

0 comments on commit d662505

Please sign in to comment.