Fixed basecli query for 0.7

This commit is contained in:
Ethan Frey 2017-07-03 21:53:58 +02:00
parent 36be40f3af
commit af132fbab8
1 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,8 @@ import (
proofcmd "github.com/tendermint/light-client/commands/proofs"
"github.com/tendermint/light-client/proofs"
"github.com/tendermint/basecoin/modules/coin"
"github.com/tendermint/basecoin/stack"
btypes "github.com/tendermint/basecoin/types"
)
@ -24,9 +26,9 @@ func doAccountQuery(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
key := btypes.AccountKey(addr)
key := coin.NewAccountant("").MakeKey(stack.SigPerm(addr))
acc := new(btypes.Account)
acc := coin.Account{}
proof, err := proofcmd.GetAndParseAppProof(key, &acc)
if lc.IsNoDataErr(err) {
return errors.Errorf("Account bytes are empty for address %X ", addr)