Example WriteGenesis implementation

This commit is contained in:
Christopher Goes
2018-04-27 20:00:58 -04:00
committed by rigelrozanski
parent ef88ca4c21
commit ff66629b68
3 changed files with 21 additions and 11 deletions
-10
View File
@@ -1,10 +0,0 @@
package types
import (
"encoding/json"
)
// Run only once on chain initialization, should write genesis state to store
// or throw an error if some required information was not provided, in which case
// the application will panic.
type InitGenesis func(ctx Context, data json.RawMessage) error