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

Method DefaultGenesis

x/contract/module.go:65–67  ·  view source on GitHub ↗

DefaultGenesis returns the module's default genesis state.

(cdc codec.JSONCodec)

Source from the content-addressed store, hash-verified

63
64// DefaultGenesis returns the module's default genesis state.
65func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
66 return cdc.MustMarshalJSON(types.DefaultGenesis())
67}
68
69// ValidateGenesis performs genesis state validation for the module.
70func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error {

Callers

nothing calls this directly

Calls 1

DefaultGenesisFunction · 0.92

Tested by

no test coverage detected