Skip to content

Commit 7643139

Browse files
ccharlymikesposito
andauthored
chore: #getUpdatableState -> #getControllerSessionState
Co-authored-by: Michele Esposito <[email protected]>
1 parent 62375b2 commit 7643139

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/keyring-controller/src/KeyringController.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,18 +2162,18 @@ export class KeyringController extends BaseController<
21622162
}
21632163

21642164
/**
2165-
* Get a snapshot of data that can be updated during a `withKeyring` operation.
2165+
* Get a snapshot of session data held by class variables.
21662166
*
2167-
* @returns Snapshot of updatable data.
2167+
* @returns An object with serialized keyrings, keyrings metadata,
2168+
* and the user password.
21682169
*/
2169-
async #getUpdatableState(): Promise<UpdatableState> {
2170+
async #getControllerSessionState(): Promise<SessionState> {
21702171
return {
21712172
keyrings: await this.#getSerializedKeyrings(),
21722173
keyringsMetadata: this.#keyringsMetadata.slice(), // Force copy.
21732174
password: this.#password,
21742175
};
21752176
}
2176-
21772177
/**
21782178
* Restore a serialized keyrings array.
21792179
*

0 commit comments

Comments
 (0)