MCPcopy Create free account
hub / github.com/FirmaChain/firmachain / InitGenesis

Method InitGenesis

x/nft/module.go:125–131  ·  view source on GitHub ↗

InitGenesis performs the module's genesis initialization It returns no validator updates.

(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage)

Source from the content-addressed store, hash-verified

123// InitGenesis performs the module's genesis initialization It returns
124// no validator updates.
125func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) {
126 var genState types.GenesisState
127 // Initialize global index to index in genesis state
128 cdc.MustUnmarshalJSON(gs, &genState)
129
130 am.keeper.InitGenesis(ctx, genState)
131}
132
133// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
134func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {

Callers 1

InitChainerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected