This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kwallet): empty wallet key query
When querying a key in an empty kwallet wallet, we receive the following error: ``` Error: unexpected end of JSON input ``` This is because the `k.wallet.ReadEntry` returns empty bytes and no error. Hence we should handle a case for empty bytes. Reference: cosmos/cosmos-sdk#9562
- Loading branch information