Skip to content

Commit 8f5c321

Browse files
authored
refactor(multichain-account-service): rename #WithRetry -> #withRetry (#6621)
## Explanation Small typo. ## References N/A ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] 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), highlighting breaking changes as necessary - [ ] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
1 parent 2d0e6da commit 8f5c321

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/multichain-account-service/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- **BREAKING:** Rename `MultichainAccountWallet.alignGroup` to `alignAccountsOf` ([#6595](https://github.com/MetaMask/core/pull/6595))
1313
- **BREAKING:** Rename `MultichainAccountGroup.align` to `alignAccounts` ([#6595](https://github.com/MetaMask/core/pull/6595))
1414
- Bump `@metamask/utils` from `^11.4.2` to `^11.8.0` ([#6588](https://github.com/MetaMask/core/pull/6588))
15-
- Add timeout & retry mechanism to EVM discovery ([#6609](https://github.com/MetaMask/core/pull/6609))
15+
- Add timeout & retry mechanism to EVM discovery ([#6609](https://github.com/MetaMask/core/pull/6609)), ([#6621](https://github.com/MetaMask/core/pull/6621))
1616

1717
## [0.8.0]
1818

packages/multichain-account-service/src/providers/EvmAccountProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class EvmAccountProvider extends BaseBip44AccountProvider {
121121
provider: Provider,
122122
address: Hex,
123123
): Promise<number> {
124-
const countHex = await this.#WithRetry<Hex>(() =>
124+
const countHex = await this.#withRetry<Hex>(() =>
125125
this.#withTimeout(
126126
provider.request({
127127
method: 'eth_getTransactionCount',
@@ -200,7 +200,7 @@ export class EvmAccountProvider extends BaseBip44AccountProvider {
200200
* @throws An error if the transaction count cannot be retrieved.
201201
* @returns The result of the function.
202202
*/
203-
async #WithRetry<T>(
203+
async #withRetry<T>(
204204
fnToExecute: () => Promise<T>,
205205
{
206206
maxAttempts = 3,

0 commit comments

Comments
 (0)