Skip to content

Commit

Permalink
Merge PR cosmos#5668: Fix GetAccountWithHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored Feb 18, 2020
1 parent a63de30 commit 1736692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/auth/types/account_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ func (ar AccountRetriever) GetAccountWithHeight(addr sdk.AccAddress) (exported.A
return nil, height, err
}

acc, err := ar.codec.UnmarshalAccountJSON(bz)
if err != nil {
var account exported.Account
if err := ar.codec.UnmarshalJSON(bz, &account); err != nil {
return nil, height, err
}

return acc, height, nil
return account, height, nil
}

// EnsureExists returns an error if no account exists for the given address else nil.
Expand Down

0 comments on commit 1736692

Please sign in to comment.