Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kwallet): empty wallet key query #87

Merged
merged 1 commit into from Oct 11, 2021

Conversation

robert-zaremba
Copy link
Contributor

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

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
@mtibben
Copy link
Member

mtibben commented Oct 11, 2021

@robert-zaremba can you please add tests?

@mtibben mtibben merged commit 50eaec8 into 99designs:master Oct 11, 2021
rootulp added a commit to rootulp/cosmos-sdk that referenced this pull request Jul 14, 2022
The `replace` for 99designs/keyring to a Cosmos fork of keyring
(cosmos/keyring) was added in cosmos#9563

Removal of the `replace` was tracked in cosmos#9568
but never completed.

The original issue was fixed in upstream: 99designs/keyring#87
so this PR removes the `replace` and upgrades to the latest release of
99designs/keyring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants