GenerateGenesisState creates a randomized GenState of the module.
(simState *module.SimulationState)
| 30 | |
| 31 | // GenerateGenesisState creates a randomized GenState of the module. |
| 32 | func (AppModule) GenerateGenesisState(simState *module.SimulationState) { |
| 33 | accs := make([]string, len(simState.Accounts)) |
| 34 | for i, acc := range simState.Accounts { |
| 35 | accs[i] = acc.Address.String() |
| 36 | } |
| 37 | clpGenesis := types.GenesisState{ |
| 38 | Params: types.DefaultParams(), |
| 39 | } |
| 40 | simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&clpGenesis) |
| 41 | } |
| 42 | |
| 43 | // RegisterStoreDecoder registers a decoder. |
| 44 | func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} |