Skip to content

Commit

Permalink
Merge PR:update baseApp height (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-sjtu authored Feb 22, 2022
1 parent f7c2235 commit 24a1058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/cosmos-sdk/baseapp/baseapp_checktx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
Expand Down

0 comments on commit 24a1058

Please sign in to comment.