fix(baseapp): populate header info in NewUncachedContext (#22557)

This commit is contained in:
Julien Robert
2024-11-20 07:03:21 +00:00
committed by GitHub
parent b1f95988e5
commit 3d618f500e
2 changed files with 10 additions and 7 deletions
+1 -5
View File
@@ -11,7 +11,6 @@ import (
cmtjson "github.com/cometbft/cometbft/libs/json"
cmttypes "github.com/cometbft/cometbft/types"
coreheader "cosmossdk.io/core/header"
corestore "cosmossdk.io/core/store"
coretesting "cosmossdk.io/core/testing"
"cosmossdk.io/depinject"
@@ -131,10 +130,7 @@ func NextBlock(app *runtime.App, ctx sdk.Context, jumpTime time.Duration) (sdk.C
header.Time = newBlockTime
header.Height++
newCtx := app.BaseApp.NewUncachedContext(false, header).WithHeaderInfo(coreheader.Info{
Height: header.Height,
Time: header.Time,
})
newCtx := app.BaseApp.NewUncachedContext(false, header)
return newCtx, nil
}