Merge PR #4561: Add account JSON tag to AccountWithHeight

This commit is contained in:
Alexander Bezobchuk 2019-06-15 16:17:39 +02:00 committed by GitHub
parent 73700df8c3
commit ac2e765607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#4536 The `/auth/accounts/{address}` now returns a `height` in the response.
The account is now nested under `account`.

View File

@ -17,8 +17,8 @@ import (
// AccountWithHeight wraps the embedded Account with the height it was queried
// at.
type AccountWithHeight struct {
types.Account
Height int64 `json:"height"`
types.Account `json:"account"`
Height int64 `json:"height"`
}
// query accountREST Handler