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:
parent
feff014df1
commit
2ce8722318
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue