Skip to content

Commit b0a3470

Browse files
committed
fix initchainer set default genesis value
1 parent 2e0e6d8 commit b0a3470

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testutil/integration/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ func NewIntegrationApp(
6464
bApp := baseapp.NewBaseApp(appName, logger, db, txConfig.TxDecoder(), baseapp.SetChainID(appName))
6565
bApp.MountKVStores(keys)
6666

67-
bApp.SetInitChainer(func(ctx sdk.Context, _ *cmtabcitypes.InitChainRequest) (*cmtabcitypes.InitChainResponse, error) {
67+
bApp.SetInitChainer(func(_ sdk.Context, _ *cmtabcitypes.InitChainRequest) (*cmtabcitypes.InitChainResponse, error) {
6868
for _, mod := range modules {
6969
if m, ok := mod.(module.HasGenesis); ok {
70-
if err := m.InitGenesis(ctx, m.DefaultGenesis()); err != nil {
70+
if err := m.InitGenesis(sdkCtx, m.DefaultGenesis()); err != nil {
7171
return nil, err
7272
}
7373
}

0 commit comments

Comments
 (0)