Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

fix: treat undefined/null as [] in deserialize#163

Merged
legobeat merged 1 commit intoMetaMask:mainfrom
legobeat:deserialize-handle-undefined-keys
Oct 20, 2023
Merged

fix: treat undefined/null as [] in deserialize#163
legobeat merged 1 commit intoMetaMask:mainfrom
legobeat:deserialize-handle-undefined-keys

Conversation

@legobeat
Copy link
Copy Markdown
Contributor

@legobeat legobeat commented Oct 19, 2023

Passing undefined as argument to deserialize currently throws an error. This adds a default argument to match constructor behavior (treat it the same as []).

Copy link
Copy Markdown

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@legobeat legobeat merged commit ba87bd5 into MetaMask:main Oct 20, 2023
legobeat added a commit to legobeat/eth-simple-keyring that referenced this pull request Oct 20, 2023
legobeat added a commit to legobeat/eth-simple-keyring that referenced this pull request Oct 23, 2023
legobeat added a commit to legobeat/eth-simple-keyring that referenced this pull request Oct 2, 2024
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.

2 participants