Skip to content

Commit e37c0cf

Browse files
committed
Update dependencies, improve basecli init check
1 parent 7a09fbd commit e37c0cf

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ ENHANCEMENTS:
1919
not just `tcp://localhost:46657`
2020
- gives error message when running commands on an unitialized chain, rather
2121
than some unintelligable panic
22+
- Add `--genesis` to init
23+
- Example: `basecli init --node=localhost:46657 --genesis=$HOME/.basecoin/genesis.json`
2224

2325

2426
## 0.6.0 (June 22, 2017)

cmd/basecli/commands/cmds.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func init() {
4747

4848
// runDemo is an example of how to make a tx
4949
func doSendTx(cmd *cobra.Command, args []string) error {
50+
if err := commands.RequireInit(cmd); err != nil {
51+
return err
52+
}
5053

5154
// load data from json or flags
5255
tx := new(btypes.SendTx)

cmd/basecli/commands/query.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
wire "github.com/tendermint/go-wire"
88
lc "github.com/tendermint/light-client"
9+
lcmd "github.com/tendermint/light-client/commands"
910
proofcmd "github.com/tendermint/light-client/commands/proofs"
1011
"github.com/tendermint/light-client/proofs"
1112

@@ -19,6 +20,10 @@ var AccountQueryCmd = &cobra.Command{
1920
}
2021

2122
func doAccountQuery(cmd *cobra.Command, args []string) error {
23+
if err := lcmd.RequireInit(cmd); err != nil {
24+
return err
25+
}
26+
2227
addr, err := proofcmd.ParseHexKey(args, "address")
2328
if err != nil {
2429
return err

glide.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)