diff --git a/core/appmodule/v2/genesis.go b/core/appmodule/v2/genesis.go index b5e007ab3028..d457ac89d8c3 100644 --- a/core/appmodule/v2/genesis.go +++ b/core/appmodule/v2/genesis.go @@ -2,6 +2,7 @@ package appmodule import ( "context" + "encoding/json" ) // HasGenesis defines a custom genesis handling API implementation. @@ -10,7 +11,7 @@ import ( type HasGenesis interface { AppModule DefaultGenesis() Message - ValidateGenesis(data Message) error - InitGenesis(ctx context.Context, data Message) error - ExportGenesis(ctx context.Context) (Message, error) + ValidateGenesis(data json.RawMessage) error + InitGenesis(ctx context.Context, data json.RawMessage) error + ExportGenesis(ctx context.Context) (json.RawMessage, error) }