Minor cleanup

This commit is contained in:
Ethan Frey 2017-06-21 16:24:51 +02:00
parent 824050a0b4
commit 4cabad0980
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,7 @@
package commands
import (
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
wire "github.com/tendermint/go-wire"
@ -29,7 +28,7 @@ func doAccountQuery(cmd *cobra.Command, args []string) error {
acc := new(btypes.Account)
proof, err := proofcmd.GetAndParseAppProof(key, &acc)
if lc.IsNoDataErr(err) {
return fmt.Errorf("Account bytes are empty for address %X ", addr)
return errors.Errorf("Account bytes are empty for address %X ", addr)
} else if err != nil {
return err
}

View File

@ -24,7 +24,9 @@ initServer() {
assertNotNull "no chain" $2
CHAIN=$2
SERVER_LOG=$1/${SERVER_EXE}.log
${SERVER_EXE} init --chain-id $CHAIN $(${CLIENT_EXE} keys get ${RICH} | awk '{print $2}') --home=$SERVE_DIR >>$SERVER_LOG
GENKEY=$(${CLIENT_EXE} keys get ${RICH} | awk '{print $2}')
${SERVER_EXE} init --chain-id $CHAIN $GENKEY --home=$SERVE_DIR >>$SERVER_LOG
# optionally set the port
if [ -n "$3" ]; then