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

Method ExportGenesis

x/token/module.go:139–142  ·  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

137
138// ExportGenesis returns the module's exported genesis state as raw JSON bytes.
139func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage {
140 genState := am.keeper.ExportGenesis(ctx)
141 return cdc.MustMarshalJSON(genState)
142}
143
144// ConsensusVersion implements ConsensusVersion.
145func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected