Update dependencies, improve basecli init check

This commit is contained in:
Ethan Frey
2017-06-26 18:22:51 +02:00
parent 7a09fbd598
commit e37c0cf538
4 changed files with 12 additions and 2 deletions
+3
View File
@@ -47,6 +47,9 @@ func init() {
// runDemo is an example of how to make a tx
func doSendTx(cmd *cobra.Command, args []string) error {
if err := commands.RequireInit(cmd); err != nil {
return err
}
// load data from json or flags
tx := new(btypes.SendTx)
+5
View File
@@ -6,6 +6,7 @@ import (
wire "github.com/tendermint/go-wire"
lc "github.com/tendermint/light-client"
lcmd "github.com/tendermint/light-client/commands"
proofcmd "github.com/tendermint/light-client/commands/proofs"
"github.com/tendermint/light-client/proofs"
@@ -19,6 +20,10 @@ var AccountQueryCmd = &cobra.Command{
}
func doAccountQuery(cmd *cobra.Command, args []string) error {
if err := lcmd.RequireInit(cmd); err != nil {
return err
}
addr, err := proofcmd.ParseHexKey(args, "address")
if err != nil {
return err