Skip to content

Commit

Permalink
refactor(keyring-snap-bridge): fix new eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Sep 27, 2024
1 parent 4e66c6e commit aae45b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/keyring-snap-bridge/src/KeyringSnapControllerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import type { Json } from '@metamask/utils';
* to a snap through a `SnapController`.
*/
class SnapControllerSender implements Sender {
#snapId: SnapId;
readonly #snapId: SnapId;

#origin: string;
readonly #origin: string;

#controller: SnapController;
readonly #controller: SnapController;

#handler: HandlerType;
readonly #handler: HandlerType;

/**
* Create a new instance of `SnapControllerSender`.
Expand Down Expand Up @@ -59,7 +59,7 @@ class SnapControllerSender implements Sender {
* `SnapController`.
*/
export class KeyringSnapControllerClient extends KeyringClient {
#controller: SnapController;
readonly #controller: SnapController;

/**
* Create a new instance of `KeyringSnapControllerClient`.
Expand Down
2 changes: 1 addition & 1 deletion packages/keyring-snap-bridge/src/SnapIdMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class InvalidSnapIdError extends Error {
* item to the map can modify or delete it.
*/
export class SnapIdMap<Value extends { snapId: SnapId }> {
#map: CaseInsensitiveMap<Value>;
readonly #map: CaseInsensitiveMap<Value>;

/**
* Creates a new `SnapIdMap` object.
Expand Down
6 changes: 3 additions & 3 deletions packages/keyring-snap-bridge/src/SnapKeyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class SnapKeyring extends EventEmitter {
/**
* Client used to call the Snap keyring.
*/
#snapClient: KeyringSnapControllerClient;
readonly #snapClient: KeyringSnapControllerClient;

/**
* Mapping between account IDs and an object that contains the associated
Expand All @@ -120,15 +120,15 @@ export class SnapKeyring extends EventEmitter {
/**
* Mapping between request IDs and their deferred promises.
*/
#requests: SnapIdMap<{
readonly #requests: SnapIdMap<{
promise: DeferredPromise<any>;
snapId: SnapId;
}>;

/**
* Callbacks used to interact with other components.
*/
#callbacks: SnapKeyringCallbacks;
readonly #callbacks: SnapKeyringCallbacks;

/**
* Create a new Snap keyring.
Expand Down

0 comments on commit aae45b7

Please sign in to comment.