Update dependencies, improve basecli init check
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user