From 17e5a48b6548d0cb6c576dffd7e42f1e5a7abc59 Mon Sep 17 00:00:00 2001 From: Geet Kumar Date: Fri, 22 Jun 2018 13:50:36 -0500 Subject: [PATCH] Merge PR #1334: democli: fix account query * democli: fix query account * Update changelog --- CHANGELOG.md | 1 + examples/democoin/types/account.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a97a18bd10..b6d786bf38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ FIXES * \#1052 - Make all now works * Retry on HTTP request failure in CLI tests, add option to retry tests in Makefile * Fixed bug where chain ID wasn't passed properly in x/bank REST handler +* Fixed bug where `democli account` didn't decode the account data correctly ## 0.19.0 diff --git a/examples/democoin/types/account.go b/examples/democoin/types/account.go index 211cf3c416..e01b63c318 100644 --- a/examples/democoin/types/account.go +++ b/examples/democoin/types/account.go @@ -32,7 +32,7 @@ func GetAccountDecoder(cdc *wire.Codec) auth.AccountDecoder { return nil, sdk.ErrTxDecode("accBytes are empty") } acct := new(AppAccount) - err = cdc.UnmarshalBinary(accBytes, &acct) + err = cdc.UnmarshalBinaryBare(accBytes, &acct) if err != nil { panic(err) }