From 935146765dc6b2b9be910b9cf8aea8a74aff04af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:26:39 +0200 Subject: [PATCH] self review fix --- modules/apps/transfer/keeper/relay.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/apps/transfer/keeper/relay.go b/modules/apps/transfer/keeper/relay.go index 204593ebe69..f18f9458e5c 100644 --- a/modules/apps/transfer/keeper/relay.go +++ b/modules/apps/transfer/keeper/relay.go @@ -58,14 +58,6 @@ func (k Keeper) sendTransfer( timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) (uint64, error) { - if !k.GetSendEnabled(ctx) { - return 0, types.ErrSendDisabled - } - - if k.bankKeeper.BlockedAddr(sender) { - return 0, sdkerrors.Wrapf(sdkerrors.ErrUnauthorized, "%s is not allowed to send funds", sender) - } - channel, found := k.channelKeeper.GetChannel(ctx, sourcePort, sourceChannel) if !found { return 0, sdkerrors.Wrapf(channeltypes.ErrChannelNotFound, "port ID (%s) channel ID (%s)", sourcePort, sourceChannel)