PrivKey is just []byte

This commit is contained in:
Jae Kwon
2015-01-13 21:03:01 -08:00
parent 491970639d
commit 694a10e0a7
6 changed files with 28 additions and 34 deletions

View File

@@ -33,6 +33,11 @@ func GetAccountHandler(w http.ResponseWriter, r *http.Request) {
state := consensusState.GetState()
account_ := state.GetAccount(address)
if account_ == nil {
WriteAPIResponse(w, API_OK, struct{}{})
return
}
WriteAPIResponse(w, API_OK, struct {
Account *account.Account
}{account_})