Skip to content

Add optional destroy method to Keyring type#108

Merged
mikesposito merged 1 commit intomainfrom
feat/keyring-destroy
Jun 20, 2023
Merged

Add optional destroy method to Keyring type#108
mikesposito merged 1 commit intomainfrom
feat/keyring-destroy

Conversation

@mikesposito
Copy link
Copy Markdown
Member

@mikesposito mikesposito commented Jun 20, 2023

This PR adds the destroy optional method to the Keyring type.
Some keyrings like @metamask/eth-trezor-keyring and @metamask/eth-ledger-bridge-keyring support this method to remove hardware bridges and in some cases (Ledger) to remove listeners.

We need to add this method to the Keyring before migrating Trezor and Ledger keyrings to this type.

Changes

  • ADDED: Optional destroy method on Keyring type

References

@mikesposito mikesposito requested a review from a team as a code owner June 20, 2023 09:41
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mikesposito mikesposito merged commit e263d07 into main Jun 20, 2023
@mikesposito mikesposito deleted the feat/keyring-destroy branch June 20, 2023 13:12
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.

Add the destroy method on Keyring type

2 participants