From b0a34707e06318899dbf92c8261db81d614b9058 Mon Sep 17 00:00:00 2001 From: sontrinh16 Date: Fri, 19 Jul 2024 22:42:42 +0700 Subject: [PATCH 1/2] fix initchainer set default genesis value --- testutil/integration/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testutil/integration/router.go b/testutil/integration/router.go index 0e4724779425..952d371df191 100644 --- a/testutil/integration/router.go +++ b/testutil/integration/router.go @@ -64,10 +64,10 @@ func NewIntegrationApp( bApp := baseapp.NewBaseApp(appName, logger, db, txConfig.TxDecoder(), baseapp.SetChainID(appName)) bApp.MountKVStores(keys) - bApp.SetInitChainer(func(ctx sdk.Context, _ *cmtabcitypes.InitChainRequest) (*cmtabcitypes.InitChainResponse, error) { + bApp.SetInitChainer(func(_ sdk.Context, _ *cmtabcitypes.InitChainRequest) (*cmtabcitypes.InitChainResponse, error) { for _, mod := range modules { if m, ok := mod.(module.HasGenesis); ok { - if err := m.InitGenesis(ctx, m.DefaultGenesis()); err != nil { + if err := m.InitGenesis(sdkCtx, m.DefaultGenesis()); err != nil { return nil, err } } From 3bc18e9e88b1bd05e510e74a418c4c7c94dd9511 Mon Sep 17 00:00:00 2001 From: sontrinh16 Date: Sun, 21 Jul 2024 19:06:49 +0700 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3641552f84a2..be30e89daadc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i * [#19851](https://github.com/cosmos/cosmos-sdk/pull/19851) Fix some places in which we call Remove inside a Walk (x/staking and x/gov). * [#20939](https://github.com/cosmos/cosmos-sdk/pull/20939) Fix collection reverse iterator to include `pagination.key` in the result. * (client/grpc) [#20969](https://github.com/cosmos/cosmos-sdk/pull/20969) Fix `node.NewQueryServer` method not setting `cfg`. +* (testutil/integration) [#21006](https://github.com/cosmos/cosmos-sdk/pull/21006) Fix `NewIntegrationApp` method not writing default genesis to state ### API Breaking Changes