From 8d6bad90940af11b86a42c178d509e10c9bfa6c9 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Sat, 16 Mar 2024 18:02:16 +0100 Subject: [PATCH] Update x/uibc/uics20/memo_handler.go Co-authored-by: Sai Kumar <17549398+gsk967@users.noreply.github.com> --- x/uibc/uics20/memo_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }