types: fixed the error returned from AccAddress unmarshal

This commit is contained in:
LLLeon 2018-09-01 19:14:17 +08:00
parent b296209536
commit efb3b95476
1 changed files with 1 additions and 1 deletions

View File

@ -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)