File tree 3 files changed +9
-9
lines changed
packages/keyring-snap-bridge/src
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ import type { Json } from '@metamask/utils';
10
10
* to a snap through a `SnapController`.
11
11
*/
12
12
class SnapControllerSender implements Sender {
13
- #snapId: SnapId ;
13
+ readonly #snapId: SnapId ;
14
14
15
- #origin: string ;
15
+ readonly #origin: string ;
16
16
17
- #controller: SnapController ;
17
+ readonly #controller: SnapController ;
18
18
19
- #handler: HandlerType ;
19
+ readonly #handler: HandlerType ;
20
20
21
21
/**
22
22
* Create a new instance of `SnapControllerSender`.
@@ -59,7 +59,7 @@ class SnapControllerSender implements Sender {
59
59
* `SnapController`.
60
60
*/
61
61
export class KeyringSnapControllerClient extends KeyringClient {
62
- #controller: SnapController ;
62
+ readonly #controller: SnapController ;
63
63
64
64
/**
65
65
* Create a new instance of `KeyringSnapControllerClient`.
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export class InvalidSnapIdError extends Error {
38
38
* item to the map can modify or delete it.
39
39
*/
40
40
export class SnapIdMap < Value extends { snapId : SnapId } > {
41
- #map: CaseInsensitiveMap < Value > ;
41
+ readonly #map: CaseInsensitiveMap < Value > ;
42
42
43
43
/**
44
44
* Creates a new `SnapIdMap` object.
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export class SnapKeyring extends EventEmitter {
106
106
/**
107
107
* Client used to call the Snap keyring.
108
108
*/
109
- #snapClient: KeyringSnapControllerClient ;
109
+ readonly #snapClient: KeyringSnapControllerClient ;
110
110
111
111
/**
112
112
* Mapping between account IDs and an object that contains the associated
@@ -120,15 +120,15 @@ export class SnapKeyring extends EventEmitter {
120
120
/**
121
121
* Mapping between request IDs and their deferred promises.
122
122
*/
123
- #requests: SnapIdMap < {
123
+ readonly #requests: SnapIdMap < {
124
124
promise : DeferredPromise < any > ;
125
125
snapId : SnapId ;
126
126
} > ;
127
127
128
128
/**
129
129
* Callbacks used to interact with other components.
130
130
*/
131
- #callbacks: SnapKeyringCallbacks ;
131
+ readonly #callbacks: SnapKeyringCallbacks ;
132
132
133
133
/**
134
134
* Create a new Snap keyring.
You can’t perform that action at this time.
0 commit comments