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

Method ExportGenesis

x/nft/module.go:134–137  ·  view source on GitHub ↗

ExportGenesis returns the module's exported genesis state as raw JSON bytes.

(ctx sdk.Context, cdc codec.JSONCodec)

Source from the content-addressed store, hash-verified

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 {
135 genState := am.keeper.ExportGenesis(ctx)
136 return cdc.MustMarshalJSON(genState)
137}
138
139// ConsensusVersion implements ConsensusVersion.
140func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected