-
Notifications
You must be signed in to change notification settings - Fork 30
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 crash when import watch-only wallet and click send button #200
Conversation
launching a fresh instance of cryptopower i get this error
|
this seems to be on master as well, but this would need to be fixed in order to test this PR as i need to import a watch only wallet on a fresh install of cryptopower |
even though it's not within the scope of this PR, I'll fix it |
seems the issue has been resolved #202 |
@JustinBeBoy did you test this on a fresh install of cryptopower? cause that's how to detect the issue, it still happens
|
I have tested, seem like your wallet have mixed account, I will test that case |
clicking the send button for the first time caused a crash
|
I can't reproduce it, please explain step by step and the extended public key you use |
After a lot of test, I have found the problem |
if len(s.items) == 0 { | ||
return D{} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see no harm in showing the asset slider for a watch only wallet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or is a watch only wallet's balance not calculated as part of the slider?
if it's not then ignore this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or is a watch only wallet's balance not calculated as part of the slider?
if it's not then ignore this
Exactly, calculate total assets balance not include watch-only wallet, additional it causes crash app
Resolve #182
This PR fix: