Fix typo in json output for basecoin and democoin

This commit is contained in:
Jack Zampolin 2018-10-22 15:35:08 -07:00
parent 5aae4740db
commit 322d0b7087
2 changed files with 7 additions and 5 deletions

View File

@ -3,10 +3,11 @@ package main
import (
"encoding/json"
"fmt"
"github.com/tendermint/tendermint/p2p"
"io"
"os"
"github.com/tendermint/tendermint/p2p"
"github.com/cosmos/cosmos-sdk/baseapp"
gaiaInit "github.com/cosmos/cosmos-sdk/cmd/gaia/init"
@ -95,7 +96,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
toPrint := struct {
ChainID string `json:"chain_id"`
NodeID string `json:"noide_id"`
NodeID string `json:"node_id"`
AppMessage json.RawMessage `json:"app_message"`
}{
chainID,

View File

@ -3,12 +3,13 @@ package main
import (
"encoding/json"
"fmt"
"io"
"os"
"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/p2p"
"io"
"os"
"github.com/spf13/cobra"
@ -99,7 +100,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
toPrint := struct {
ChainID string `json:"chain_id"`
NodeID string `json:"noide_id"`
NodeID string `json:"node_id"`
AppMessage json.RawMessage `json:"app_message"`
}{
chainID,