Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

fix!: Keyring.serialize and Keyring.deserialize types - #232

Merged
mikesposito merged 1 commit into
mainfrom
mikesposito/fix/serialize-deserialize
Feb 5, 2025
Merged

mikesposito merged 1 commit into
mainfrom
mikesposito/fix/serialize-deserialize

Conversation

@mikesposito

Copy link
Copy Markdown
Member

The deserialize and serialize methods present wrong signatures as they expect the State extends Json generic type passed to the Keyring for their arguments and return value.

They now present the following signatures:

  • serialize(): Promise<Json>
  • deserialize(state: Json): Promise<void>

Since now the State extends Json generic is unused, it has been removed from the Keyring type

@mikesposito mikesposito changed the title fix: Keyring.serialize and Keyring.deserialize types fix!: Keyring.serialize and Keyring.deserialize types Feb 4, 2025
@mikesposito
mikesposito merged commit 368a7c6 into main Feb 5, 2025
@mikesposito
mikesposito deleted the mikesposito/fix/serialize-deserialize branch February 5, 2025 15:37
jeffsmale90 added a commit that referenced this pull request Feb 10, 2025
ccharly pushed a commit that referenced this pull request Feb 11, 2025
Reverts the changes introduced by
#232 in order to allow
#231 to be released as a minor
update on the current published version without requiring a major
version bump.

This change will be re-introduced after release.
github-merge-queue Bot pushed a commit to MetaMask/accounts that referenced this pull request Feb 12, 2025
This PR is reapplying [these
changes](MetaMask/utils#232) to the Keyring
type, which were reverted in the original repo.

Fixes: MetaMask/utils#128
ccharly pushed a commit to MetaMask/accounts that referenced this pull request Feb 13, 2025
This PR is reapplying [these
changes](MetaMask/utils#232) to the Keyring
type, which were reverted in the original repo.

Fixes: MetaMask/utils#128
ccharly pushed a commit to MetaMask/accounts that referenced this pull request Feb 20, 2025
This PR is reapplying [these
changes](MetaMask/utils#232) to the Keyring
type, which were reverted in the original repo.

Fixes: MetaMask/utils#128
pull Bot pushed a commit to Reality2byte/core that referenced this pull request Sep 10, 2026
Reverts the changes introduced by
MetaMask/utils#232 in order to allow
MetaMask/utils#231 to be released as a minor
update on the current published version without requiring a major
version bump.

This change will be re-introduced after release.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Keyring serialize and deserialize type signature

2 participants