-
Notifications
You must be signed in to change notification settings - Fork 393
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
Buggity fixes: two small bug fixes #3558
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -334,8 +334,6 @@ export default class InternalSignerService extends BaseService<Events> { | |||||
this.#hiddenAccounts = { | ||||||
...plainTextVault.hiddenAccounts, | ||||||
} | ||||||
|
||||||
this.#emitInternalSigners() | ||||||
} | ||||||
} | ||||||
|
||||||
|
@@ -347,6 +345,8 @@ export default class InternalSignerService extends BaseService<Events> { | |||||
} | ||||||
|
||||||
this.#unlock() | ||||||
this.#emitInternalSigners() | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't it making There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That argument would result in cleared vaults here, which would clear the signers in redux--which is what we would want in a scenario where we were resetting a password, which is the non-onboarding reason that argument is in place, see the function docs: extension/background/services/internal-signer/index.ts Lines 262 to 263 in 7543954
We haven't implemented that yet but I don't think it's useful to remove it. |
||||||
|
||||||
return true | ||||||
} | ||||||
|
||||||
|
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.
This looks safe but I couldn't really trigger this line by testing UI, what are the testing steps here?
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.
Whoops, did it in a hurry and forgot to add test instructions 🤦 Adding a custom asset on a custom chain and then waiting for the price alarm to trigger price checks I think will do the trick here. Background script should log an error without this, no error with it.