Is there an existing issue for this?
What happened?
In trying to use the NewIntegrationApp helper to test a module I noticed that the state written by InitChain sourced from DefaultGenesis is not written to state.
Cosmos SDK Version
main
How to reproduce?
To reproduce, run a modified Example_oneModule from https://github.com/cosmos/cosmos-sdk/blob/main/tests/integration/example/example_test.go#L119
See this PR/commit for a minimal repro:
silasdavis#1
In that commit I have removed the part of the test that calls RunMsg to set the the params with MaxMemoCharacters changed to 1000.
I would expect to see the params take their default values.
Instead of observing params that take on the values set by DefaultGenesis you see that the params take on the zero value of the Params struct, indicating that the InitChain is not writing the initial genesis state to the underlying IAVL tree.
Is there an existing issue for this?
What happened?
In trying to use the
NewIntegrationApphelper to test a module I noticed that the state written byInitChainsourced fromDefaultGenesisis not written to state.Cosmos SDK Version
main
How to reproduce?
To reproduce, run a modified
Example_oneModulefrom https://github.com/cosmos/cosmos-sdk/blob/main/tests/integration/example/example_test.go#L119See this PR/commit for a minimal repro:
silasdavis#1
In that commit I have removed the part of the test that calls
RunMsgto set the the params withMaxMemoCharacterschanged to 1000.I would expect to see the params take their default values.
Instead of observing params that take on the values set by
DefaultGenesisyou see that the params take on the zero value of theParamsstruct, indicating that theInitChainis not writing the initial genesis state to the underlying IAVL tree.