Skip to content

Commit

Permalink
fix: NewIntegrationApp does not write default genesis to state (#21006)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6f1592d)

# Conflicts:
#	testutil/integration/router.go
  • Loading branch information
sontrinh16 authored and mergify[bot] committed Jul 21, 2024
1 parent 7d0d59d commit 0a58033
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

* [#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

## [v0.50.8](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.8) - 2024-07-15

Expand Down
9 changes: 9 additions & 0 deletions testutil/integration/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,19 @@ func NewIntegrationApp(
bApp := baseapp.NewBaseApp(appName, logger, db, txConfig.TxDecoder(), baseapp.SetChainID(appName))
bApp.MountKVStores(keys)

<<<<<<< HEAD

Check failure on line 62 in testutil/integration/router.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected statement, found '<<'
bApp.SetInitChainer(func(ctx sdk.Context, _ *cmtabcitypes.RequestInitChain) (*cmtabcitypes.ResponseInitChain, error) {
for _, mod := range modules {
if m, ok := mod.(module.HasGenesis); ok {
m.InitGenesis(ctx, appCodec, m.DefaultGenesis(appCodec))
=======

Check failure on line 67 in testutil/integration/router.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected statement, found '=='
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(sdkCtx, m.DefaultGenesis()); err != nil {
return nil, err
}
>>>>>>> 6f1592d3d (fix: NewIntegrationApp does not write default genesis to state (#21006))

Check failure on line 74 in testutil/integration/router.go

View workflow job for this annotation

GitHub Actions / dependency-review

expected statement, found '>>'

Check failure on line 74 in testutil/integration/router.go

View workflow job for this annotation

GitHub Actions / dependency-review

illegal character U+0023 '#'
}
}

Expand Down

0 comments on commit 0a58033

Please sign in to comment.