Skip to content

Commit

Permalink
refactor: apply @Gudahtt suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Jul 18, 2023
1 parent 4bb26ed commit 62e1617
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ export class KeyringController extends BaseControllerV2<
setSelectedAddress,
setAccountLabel,
encryptor,
keyringBuilders = [],
keyringBuilders,
cacheEncryptionKey = false,
messenger,
state = {},
state,
}: KeyringControllerOptions) {
super({
name,
Expand Down Expand Up @@ -832,6 +832,7 @@ export class KeyringController extends BaseControllerV2<
* when initializing the controller
*/
async #addQRKeyring(): Promise<QRKeyring> {
// QRKeyring is not yet compatible with Keyring type from @metamask/utils
return this.#keyring.addNewKeyring(KeyringTypes.qr) as unknown as QRKeyring;
}

Expand Down

0 comments on commit 62e1617

Please sign in to comment.