From 20bb78399bf36f33fc24552820db34ac69190b09 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Sat, 31 Mar 2018 19:01:54 +0300 Subject: [PATCH] fix democoin --- examples/democoin/cmd/democoind/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/democoin/cmd/democoind/main.go b/examples/democoin/cmd/democoind/main.go index c2ee0a7c12..d9421954c9 100644 --- a/examples/democoin/cmd/democoind/main.go +++ b/examples/democoin/cmd/democoind/main.go @@ -10,6 +10,7 @@ import ( abci "github.com/tendermint/abci/types" "github.com/tendermint/tmlibs/cli" + cmn "github.com/tendermint/tmlibs/common" dbm "github.com/tendermint/tmlibs/db" "github.com/tendermint/tmlibs/log" @@ -28,10 +29,10 @@ var ( // defaultOptions sets up the app_options for the // default genesis file -func defaultOptions(args []string) (json.RawMessage, error) { +func defaultOptions(args []string) (json.RawMessage, string, cmn.HexBytes, error) { addr, secret, err := server.GenerateCoinKey() if err != nil { - return nil, err + return nil, "", nil, err } fmt.Println("Secret phrase to access coins:") fmt.Println(secret) @@ -47,7 +48,7 @@ func defaultOptions(args []string) (json.RawMessage, error) { ] }] }`, addr) - return json.RawMessage(opts), nil + return json.RawMessage(opts), "", nil, nil } func generateApp(rootDir string, logger log.Logger) (abci.Application, error) {