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

Always honor the name parameter passed to importAccount #4906

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

andiflabs
Copy link
Contributor

Summary

When calling importAccount with an RpcAccountImport and a non-undefined name, the name parameter used to be ignored. This is no longer the case: passing a non-undefined name now overrides the name of the RpcAccountImport.

Testing Plan

Unit tests

Documentation

No doc change required because the current doc (https://ironfish.network/developers/documentation/rpc/wallet/import_account) does not specify any limitations for name

Breaking Change

This is a breaking change because the behavior of calls to importAccount using name has changed.

When calling `importAccount` with an `RpcAccountImport` and a
non-undefined `name`, the `name` parameter used to be ignored. This is
no longer the case: passing a non-undefined `name` now overrides the
name of the `RpcAccountImport`.
@andiflabs andiflabs added the breaking-change-rpc A breaking change to the RPC API that should be called out in release notes label Apr 18, 2024
@andiflabs andiflabs requested a review from a team as a code owner April 18, 2024 16:04
@andiflabs andiflabs merged commit 1735b1f into staging Apr 18, 2024
11 checks passed
@andiflabs andiflabs deleted the andrea/import-json-account-override-name branch April 18, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change-rpc A breaking change to the RPC API that should be called out in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants