feat: Added the ability to select multiple keys to remove from the account#597
Conversation
|
@FroVolod Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: executed
Your contribution is much appreciated with a final score of 2! Another weekly streak completed, well done @FroVolod! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
There was a problem hiding this comment.
Pull request overview
This PR extends the transaction construction/reconstruction flows to support deleting multiple access keys in a single constructed transaction by accepting/selecting a list of public keys and expanding it into multiple DeleteKey actions.
Changes:
- Update
construct-transaction“delete-key” action to accept aPublicKeyListand expand it into multipleDeleteKeyactions. - Reuse the existing
account delete-keyspublic-key selection UX (multi-select/online + manual/offline) from within the transaction construction flow. - Update reconstruct-transaction mapping to populate the new
public_keysfield when reconstructing aDeleteKeyaction.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/commands/transaction/reconstruct_transaction/mod.rs |
Adjusts reconstructed CLI action to use public_keys list for DeleteKey. |
src/commands/transaction/construct_transaction/mod.rs |
Adds context conversion to reuse the account delete-keys key selector during transaction construction. |
src/commands/transaction/construct_transaction/add_action_1/add_action/delete_key/mod.rs |
Switches delete-key input to PublicKeyList, expands into multiple actions, and hooks custom input. |
src/commands/transaction/construct_transaction/add_action_2/add_action/delete_key/mod.rs |
Same multi-key delete-key support for step 2 of the action-building flow. |
src/commands/transaction/construct_transaction/add_action_3/add_action/delete_key/mod.rs |
Same multi-key delete-key support for step 3 of the action-building flow. |
src/commands/account/mod.rs |
Exposes delete_key module to allow reuse from transaction construction. |
src/commands/account/delete_key/mod.rs |
Exposes selector module/context fields needed for reuse by transaction construction. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🥁 Score it! @r-near, please score the PR with |
Uh oh!
There was an error while loading. Please reload this page.