Skip to content

Try to unlock account only when it is imported #1798

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

Merged
merged 3 commits into from
Sep 27, 2019

Conversation

remagpie
Copy link
Contributor

When the password.json contains the passwords for the accounts that are not imported (i.e. not included in the keys directory), CodeChain throws an error at the beginning of the execution.
This patch fixes this by checking if the account exists before trying to unlock it.

Fix #1751

@remagpie remagpie requested a review from majecty September 26, 2019 05:08
@foriequal0 foriequal0 merged commit cbcec0b into CodeChain-io:master Sep 27, 2019
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.

password.json with multiple addresses can't be used
3 participants