Skip to content

Commit

Permalink
feat: add getSelectedMultichainAccount and listMultichainAccounts (#4330
Browse files Browse the repository at this point in the history
)

## Explanation

This pull request adds two new methods `getSelectedMultichainAccount`,
`listMultichainAccounts` and `selectedEvmAccountChange` event. The
optional arguments are to make the changes backwards compatible when
used with evm specific controllers.

## References

Related to:
- [381](MetaMask/accounts-planning#381)
- [419](MetaMask/accounts-planning#419)

## Changelog

### `@metamask/accounts-controller`

- **<CHANGED>**: Adds two new methods `getSelectedMultichainAccount`,
`listMultichainAccounts`, and `selectedEvmAccountChange` event

## 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 highlighted breaking changes using the "BREAKING" category
above as appropriate

---------

Co-authored-by: Charly Chevalier <[email protected]>
  • Loading branch information
montelaidev and ccharly authored May 31, 2024
1 parent f2823aa commit a1297d7
Show file tree
Hide file tree
Showing 6 changed files with 798 additions and 129 deletions.
2 changes: 2 additions & 0 deletions packages/accounts-controller/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = merge(baseConfig, {
// The display name when running multiple projects
displayName,

coveragePathIgnorePatterns: ['./src/tests'],

// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
Expand Down
Loading

0 comments on commit a1297d7

Please sign in to comment.