Merge PR #3141: Fix the bug in GetAccount when len(res) == 0 and err == nil

* Fix the bug in GetAccount when len(res) == 0 and err == nil
* Add the pending log
This commit is contained in:
Mike Xu 2018-12-22 01:30:29 +08:00 committed by Christopher Goes
parent feff014df1
commit 2ce8722318
2 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,8 @@ BUG FIXES
* Gaia REST API (`gaiacli advanced rest-server`)
* Gaia CLI (`gaiacli`)
* \#3141 Fix the bug in GetAccount when `len(res) == 0` and `err == nil`
* Gaia
* \#3148 Fix `gaiad export` by adding a boolean to `NewGaiaApp` determining whether or not to load the latest version
* \#3181 Correctly reset total accum update height and jailed-validator bond height / unbonding height on export-for-zero-height

View File

@ -70,7 +70,7 @@ func (ctx CLIContext) GetAccount(address []byte) (auth.Account, error) {
if err != nil {
return nil, err
} else if len(res) == 0 {
return nil, err
return nil, ErrInvalidAccount(address)
}
account, err := ctx.AccDecoder(res)