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

chore: make network_id in WalletData optional #348

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

0xRAG
Copy link

@0xRAG 0xRAG commented Dec 18, 2024

What changed? Why?

The original PR that added networkId should have added it as an optional property to maintain backwards compatibility. Since WalletData is used as the input type to import, adding a required networkId prop is inadvertently a breaking change. By marking networkId as optional, devs who have previously saved wallets who upgrade to v0.13+ will still be able to use import without making any code changes.

@0xRAG 0xRAG marked this pull request as ready for review December 18, 2024 16:09
@0xRAG 0xRAG merged commit dbd33ff into v0.13.0 Dec 18, 2024
4 checks passed
@0xRAG 0xRAG deleted the chore/optional-network-id branch December 18, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants