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

Give error message if trying to import into non-imported wallet #7913

Merged
merged 6 commits into from
Nov 23, 2020

Conversation

dv8silencer
Copy link
Contributor

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?
Fixes #7908

Currently if you try to import keys into say a derived(HD) wallet, it will simply fail silently. This is because

	if !ok {
		return errors.Wrap(err, "Only imported wallets can import more keystores")
	}

wraps a nil err with another message which still result in an nil error. So this PR just creates a new error instead of wrapping.

@prylabs-bulldozer prylabs-bulldozer bot merged commit f871e1f into prysmaticlabs:master Nov 23, 2020
@dv8silencer dv8silencer deleted the dv8-i7908 branch November 24, 2020 03:27
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.

Using accounts import for non-imported wallets will cause a silent failure.
3 participants