From 951e78bc37a262525429fc9287b710606d839bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nina=20/=20=E1=83=9C=E1=83=98=E1=83=9C=E1=83=90?= Date: Mon, 9 Dec 2024 09:38:00 +0100 Subject: [PATCH] Update app/check_tx.go Co-authored-by: Rootul P --- app/check_tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/check_tx.go b/app/check_tx.go index 3e5e2e1dd9..8bdf10cbad 100644 --- a/app/check_tx.go +++ b/app/check_tx.go @@ -19,7 +19,7 @@ func (app *App) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { // all txs must be less than or equal to the max tx size limit maxTxSize := appconsts.MaxTxSize(app.AppVersion()) currentTxSize := len(tx) - if currentTxSize > appconsts.MaxTxSize(app.AppVersion()) { + if currentTxSize > maxTxSize { err := fmt.Errorf("tx size %d bytes is larger than the application's configured threshold of %d bytes", currentTxSize, maxTxSize) return sdkerrors.ResponseCheckTxWithEvents(err, 0, 0, []abci.Event{}, false) }