-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Check if ledger was successfully able to establish transport on confirm screen mount #12535
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
app/scripts/metamask-controller.js
Outdated
@@ -1549,6 +1553,11 @@ export default class MetamaskController extends EventEmitter { | |||
return keyring; | |||
} | |||
|
|||
async attemptLedgerTransportCreation() { | |||
const keyring = this.getKeyringForDevice('ledger'); |
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 needs an await
:
const keyring = await this.getKeyringForDevice('ledger');
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 is addressed since my latest rebase
d3f0b42
to
4d04e74
Compare
Builds ready [4d04e74]
Page Load Metrics (343 ± 40 ms)
highlights:storybook
|
a6239ea
to
4a0d6bf
Compare
… of confirm screens
e849811
to
e40d909
Compare
Builds ready [e40d909]
Page Load Metrics (581 ± 68 ms)
highlights:storybook
|
For Ledger users who connect with WebHID, on some operating systems the connection of the ledger device to other software can prevent the WebHID transport from successfully being created. This PR adds a message to the user if that state is detected.
Depends on MetaMask/eth-ledger-bridge-keyring#125 and MetaMask/eth-ledger-bridge-keyring#126