From ac2e765607a64f9dacb475244895ba3e99ec927d Mon Sep 17 00:00:00 2001 From: Alexander Bezobchuk Date: Sat, 15 Jun 2019 16:17:39 +0200 Subject: [PATCH] Merge PR #4561: Add account JSON tag to AccountWithHeight --- .pending/breaking/sdk/4536-The-auth-accoun | 2 ++ x/auth/client/rest/query.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .pending/breaking/sdk/4536-The-auth-accoun diff --git a/.pending/breaking/sdk/4536-The-auth-accoun b/.pending/breaking/sdk/4536-The-auth-accoun new file mode 100644 index 0000000000..320c8a920d --- /dev/null +++ b/.pending/breaking/sdk/4536-The-auth-accoun @@ -0,0 +1,2 @@ +#4536 The `/auth/accounts/{address}` now returns a `height` in the response. +The account is now nested under `account`. diff --git a/x/auth/client/rest/query.go b/x/auth/client/rest/query.go index a6900969ce..0c54ddd508 100644 --- a/x/auth/client/rest/query.go +++ b/x/auth/client/rest/query.go @@ -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