Fix typo in json output for basecoin and democoin
This commit is contained in:
parent
5aae4740db
commit
322d0b7087
|
@ -3,10 +3,11 @@ package main
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/tendermint/tendermint/p2p"
|
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/tendermint/tendermint/p2p"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/baseapp"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
gaiaInit "github.com/cosmos/cosmos-sdk/cmd/gaia/init"
|
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 {
|
toPrint := struct {
|
||||||
ChainID string `json:"chain_id"`
|
ChainID string `json:"chain_id"`
|
||||||
NodeID string `json:"noide_id"`
|
NodeID string `json:"node_id"`
|
||||||
AppMessage json.RawMessage `json:"app_message"`
|
AppMessage json.RawMessage `json:"app_message"`
|
||||||
}{
|
}{
|
||||||
chainID,
|
chainID,
|
||||||
|
|
|
@ -3,12 +3,13 @@ package main
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/tendermint/tendermint/libs/common"
|
"github.com/tendermint/tendermint/libs/common"
|
||||||
"github.com/tendermint/tendermint/p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"io"
|
|
||||||
"os"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
@ -99,7 +100,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec, appInit server.AppInit) *cob
|
||||||
|
|
||||||
toPrint := struct {
|
toPrint := struct {
|
||||||
ChainID string `json:"chain_id"`
|
ChainID string `json:"chain_id"`
|
||||||
NodeID string `json:"noide_id"`
|
NodeID string `json:"node_id"`
|
||||||
AppMessage json.RawMessage `json:"app_message"`
|
AppMessage json.RawMessage `json:"app_message"`
|
||||||
}{
|
}{
|
||||||
chainID,
|
chainID,
|
||||||
|
|
Loading…
Reference in New Issue