Skip to content

Commit

Permalink
Update dependencies, improve basecli init check
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jun 26, 2017
1 parent 7a09fbd commit e37c0cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ENHANCEMENTS:
not just `tcp://localhost:46657`
- gives error message when running commands on an unitialized chain, rather
than some unintelligable panic
- Add `--genesis` to init
- Example: `basecli init --node=localhost:46657 --genesis=$HOME/.basecoin/genesis.json`


## 0.6.0 (June 22, 2017)
Expand Down
3 changes: 3 additions & 0 deletions cmd/basecli/commands/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions cmd/basecli/commands/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e37c0cf

Please sign in to comment.