Skip to content

Commit 4ce4489

Browse files
authored
refactor(account-api)!: rename discoverAndCreateAccounts to discoverAccounts (#371)
We forgot to remove this one as well in the last release. We re-use the same name as the `MultichainAccountWallet.discoverAccounts` to align them together.
1 parent f236289 commit 4ce4489

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

packages/account-api/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- **BREAKING:** Rename `AccountsProvider.discoverAndCreateAccounts` to `AccountsProvider.discoverAccounts` ([#371](https://github.com/MetaMask/accounts/pull/371))
13+
- This aligns the method name with `MultichainAccountWallet.discoverAccounts`.
14+
1015
## [0.11.0]
1116

1217
### Added

packages/account-api/src/api/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export type AccountProvider<Account extends KeyringAccount> = {
4545
* @param options.groupIndex - Group index to use.
4646
* @returns The list of discovered and created accounts.
4747
*/
48-
discoverAndCreateAccounts: (options: {
48+
discoverAccounts: (options: {
4949
entropySource: EntropySourceId;
5050
groupIndex: number;
5151
}) => Promise<Account[]>;

0 commit comments

Comments
 (0)