Skip to content

Commit

Permalink
change proto.Message to json.RawMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Mar 1, 2024
1 parent f55abd1 commit bcb69a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/appmodule/v2/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package appmodule

import (
"context"
"encoding/json"
)

// HasGenesis defines a custom genesis handling API implementation.
Expand All @@ -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)
}

0 comments on commit bcb69a6

Please sign in to comment.