Commit b2da989
authored
feat: add
## Explanation
Added an action for `removeAccount` in the keyring controller. Meant to
be used in the `MultichainAccountService` inside of a remove wallet
method.
## References
NA
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Exposes `removeAccount` via `KeyringController` messenger and
documents it in the changelog.
>
> - **Keyring Controller**:
> - Add `KeyringControllerRemoveAccountAction` type and include it in
`KeyringControllerActions`.
> - Register `${name}:removeAccount` handler in
`#registerMessageHandlers` to invoke `removeAccount`.
> - **Docs**:
> - Update `packages/keyring-controller/CHANGELOG.md` under Unreleased
to mention the new `removeAccount` action.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
a3eccba. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->removeAccount action (#7241)1 parent 2b5cd5f commit b2da989
File tree
2 files changed
+17
-1
lines changed- packages/keyring-controller
- src
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
| |||
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
241 | | - | |
| 246 | + | |
| 247 | + | |
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
| |||
1817 | 1823 | | |
1818 | 1824 | | |
1819 | 1825 | | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
1820 | 1831 | | |
1821 | 1832 | | |
1822 | 1833 | | |
| |||
0 commit comments