diff --git a/x/uibc/uics20/memo_handler.go b/x/uibc/uics20/memo_handler.go index cdacf24ee2..ccccb64b40 100644 --- a/x/uibc/uics20/memo_handler.go +++ b/x/uibc/uics20/memo_handler.go @@ -99,7 +99,7 @@ func (mh *MemoHandler) onRecvPacketPrepare( // NOTE: we fork the store and only commit if all messages pass. Otherwise the fork store // is discarded. func (mh MemoHandler) execute(ctx *sdk.Context) error { - if !mh.executeEnabled && (mh.isGMP || len(mh.msgs) == 0) { + if !mh.executeEnabled && (mh.isGMP || len(mh.msgs) != 0) { return errHooksDisabled }