MCPcopy Create free account
hub / github.com/Sifchain/sifnode / GenerateGenesisState

Method GenerateGenesisState

x/clp/module_simulation.go:32–41  ·  view source on GitHub ↗

GenerateGenesisState creates a randomized GenState of the module.

(simState *module.SimulationState)

Source from the content-addressed store, hash-verified

30
31// GenerateGenesisState creates a randomized GenState of the module.
32func (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.
44func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected