Skip to content

Commit

Permalink
fix(keyring-controller): eslint disable bad await warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Jan 7, 2025
1 parent 04aeed5 commit 6c3ef88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2202,6 +2202,9 @@ export class KeyringController extends BaseController<
// NOTE: Not all keyrings implement this method in a asynchronous-way. Using `await` for
// non-thenable will still be valid (despite not being really useful). It allows us to cover both
// cases and allow retro-compatibility too.
// FIXME: For some reason, it seems that eslint is complaining about this call being non-thenable
// even though it is... For now, we just disable it:
// eslint-disable-next-line @typescript-eslint/await-thenable
await keyring.generateRandomMnemonic();
await keyring.addAccounts(1);
}
Expand Down

0 comments on commit 6c3ef88

Please sign in to comment.