From b133b5e140579a8343fd2ba583243760a58fea8c Mon Sep 17 00:00:00 2001 From: Anh Minh <1phamminh0811@gmail.com> Date: Mon, 16 Sep 2024 15:29:03 +0700 Subject: [PATCH] Optimize simulation gas --- x/auth/ante/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/auth/ante/basic.go b/x/auth/ante/basic.go index c14d511e6b09..058bded391b6 100644 --- a/x/auth/ante/basic.go +++ b/x/auth/ante/basic.go @@ -54,7 +54,7 @@ func (vmd ValidateMemoDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate } memoLength := len(memoTx.GetMemo()) - if memoLength > 0 { + if memoLength > 0 || simulate { params := vmd.ak.GetParams(ctx) if uint64(memoLength) > params.MaxMemoCharacters { return ctx, sdkerrors.Wrapf(sdkerrors.ErrMemoTooLarge,