Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure derivationPath is spreadable #118

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

sparten11740
Copy link
Contributor

The latest KeyIdentifier stores a derivation path by its raw indicies in an array had a getter to return the stringified derivation path. The getter is not necessary as the derivation path is immutable, meaning it is sufficient to set it once on construction. It also gets in the way e.g. when using jest matchers.

mvayngrib
mvayngrib previously approved these changes Jul 15, 2024
Copy link
Collaborator

@mvayngrib mvayngrib left a comment

Choose a reason for hiding this comment

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

not sure if freeze overrides defineProperty, does it?

@sparten11740
Copy link
Contributor Author

not sure if freeze overrides defineProperty, does it?

it would override writeable: true

@mvayngrib mvayngrib merged commit a27ee3c into master Jul 15, 2024
7 checks passed
@mvayngrib mvayngrib deleted the sparten11740/fix/spreadable-derivation-path branch July 15, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants