fix: Fixed a bug in the command line parsing of the "send-ft" command.#592
Conversation
|
@FroVolod Thank you for your contribution! Your pull request is now a part of the Race of Sloths! Current status: staleThis pull request was removed from the race, but you can include it again with 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
|
❌ PR inactiveThis PR has been inactive for two weeks. It's now marked as stale. Tip If you think it's a mistake, you can restart the bot with |
There was a problem hiding this comment.
Pull request overview
This PR fixes the tokens ... send-ft (and similarly send-ft-call) CLI argument parsing so users no longer need to provide an extra, invalid intermediate parameter (e.g., send-ft-command) and can instead pass receiver + amount directly after the FT contract.
Changes:
- Replaced the
named_argwrapper (SendFtCommand/SendFtCallCommand) withsubargsto inline the nested arguments into the command line. - Moved
receiver_account_idinput/field into theAmountFtsub-arguments for bothsend_ftandsend_ft_call. - Updated the interactive-clap context wiring accordingly (
AmountFtnow derives fromFtContractContext).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/commands/tokens/send_ft/mod.rs |
Flattens send-ft argument structure by removing the extra named-arg command layer. |
src/commands/tokens/send_ft/amount_ft.rs |
Adds receiver_account_id to the AmountFt args and updates context plumbing to match the flattened CLI. |
src/commands/tokens/send_ft_call/mod.rs |
Applies the same CLI-flattening approach to send-ft-call. |
src/commands/tokens/send_ft_call/amount_ft.rs |
Adds receiver_account_id to AmountFt and updates context plumbing for send-ft-call. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This command had an invalid parameter (
send-at-command)The cli command is now fixed.