From efb3b95476c006cb19f82e05e7b905a7f082593d Mon Sep 17 00:00:00 2001 From: LLLeon Date: Sat, 1 Sep 2018 19:14:17 +0800 Subject: [PATCH] types: fixed the error returned from AccAddress unmarshal --- types/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/account.go b/types/account.go index 1df600c36..429cbf285 100644 --- a/types/account.go +++ b/types/account.go @@ -105,7 +105,7 @@ func (aa *AccAddress) UnmarshalJSON(data []byte) error { var s string err := json.Unmarshal(data, &s) if err != nil { - return nil + return err } aa2, err := AccAddressFromBech32(s)