Skip to content

Commit

Permalink
fix cmd unlock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wincenteam committed Mar 4, 2019
1 parent d1d6586 commit e3a2666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/geropkg/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ do
-k|--keystore) KEYSTORE_OPTION="--keystore $2"; shift 2;;
-r|--rpc)
localhost=$(hostname -I|awk -F ' ' '{print $1}')
RPC_OPTION="$cmd --rpc --rpcport $2 --rpcaddr $localhost --rpcapi personal,sero,web3 --rpccorsdomain '*'"; shift 2;;
RPC_OPTION="$cmd --rpc --rpcport $2 --rpcaddr $localhost --rpccorsdomain '*'"; shift 2;;
-h|--help) echo $show_usage;exit 0;;
--) break ;;
esac
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func makeDatabaseHandles() int {
// a key index in the key store to an internal account representation.
func MakeAddress(ks *keystore.KeyStore, account string) (accounts.Account, error) {
// If the specified account is a valid address, return it
if common.IsBase58Address(account) {
if common.IsBase58Account(account) {
return accounts.Account{Address: common.Base58ToAccount(account)}, nil
}
// Otherwise try to interpret the account as a keystore index
Expand Down

0 comments on commit e3a2666

Please sign in to comment.