Update dependencies, improve basecli init check

This commit is contained in:
Ethan Frey 2017-06-26 17:57:06 +02:00
parent 7a09fbd598
commit e37c0cf538
4 changed files with 12 additions and 2 deletions

View File

@ -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)

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)

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

4
glide.lock generated
View File

@ -1,5 +1,5 @@
hash: 4cef4b780c9acbedce588a7221903fa1c63c2ddef1237522bcf6b045c35f9c56
updated: 2017-06-26T17:17:15.64503878+02:00
updated: 2017-06-26T17:36:35.75642408+02:00
imports:
- name: github.com/bgentry/speakeasy
version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd
@ -132,7 +132,7 @@ imports:
- data
- data/base58
- name: github.com/tendermint/light-client
version: 76aeff9b049179b67e69805555c1dd1481c57781
version: 3d9d9b1a9cde59c8b72f5955e3686a17efe7f6f2
subpackages:
- certifiers
- certifiers/client