From 24a10585140579fcf06e29d550e7cf4328d6311d Mon Sep 17 00:00:00 2001 From: YuanXingqiang Date: Tue, 22 Feb 2022 13:38:37 +0800 Subject: [PATCH] =?UTF-8?q?Merge=20PR=EF=BC=9Aupdate=20baseApp=20height=20?= =?UTF-8?q?(#1581)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/cosmos-sdk/baseapp/baseapp_checktx.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/cosmos-sdk/baseapp/baseapp_checktx.go b/libs/cosmos-sdk/baseapp/baseapp_checktx.go index a0ae3817d4..61a7efebbd 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_checktx.go +++ b/libs/cosmos-sdk/baseapp/baseapp_checktx.go @@ -8,6 +8,7 @@ import ( sdk "github.com/okex/exchain/libs/cosmos-sdk/types" sdkerrors "github.com/okex/exchain/libs/cosmos-sdk/types/errors" abci "github.com/okex/exchain/libs/tendermint/abci/types" + "github.com/okex/exchain/libs/tendermint/global" ) // CheckTx implements the ABCI interface and executes a tx in CheckTx mode. In @@ -17,7 +18,7 @@ import ( // will contain releveant error information. Regardless of tx execution outcome, // the ResponseCheckTx will contain relevant gas execution context. func (app *BaseApp) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx { - tx, err := app.txDecoder(req.Tx, app.Info(abci.RequestInfo{}).LastBlockHeight) + tx, err := app.txDecoder(req.Tx, global.GetGlobalHeight()) if err != nil { return sdkerrors.ResponseCheckTx(err, 0, 0, app.trace) }