-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[cli][easy] Add serialize-signed-transaction and serialize-unsigned transaction flags for sui client ptb command #16905
[cli][easy] Add serialize-signed-transaction and serialize-unsigned transaction flags for sui client ptb command #16905
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @stefan-mysten ! Left a comment that we can perhaps address later, to make client ptb
even more consistent with other client commands.
@@ -157,6 +164,17 @@ impl PTB { | |||
program_metadata.gas_budget.value, | |||
gas_price, | |||
); | |||
|
|||
if program_metadata.serialize_unsigned_set { | |||
serialize_or_execute!(tx_data, true, false, context, PTB).print(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use serialize_or_execute
to do more of what's happening below? (Execute the transaction and display it?) It seems like that would help with consistency in general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can do that once we add the summary
flag to other commands. Then I can probably have everything within this macro for PTB.
Description
Add support for the
serialize-signed-transaction
andserialize-unsigned-transaction
flags that output transaction bytes instead of executing the transaction for thesui client ptb
command.Test Plan
Existing tests as this uses the
serialize-or-execute
macro.If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.
Type of Change (Check all that apply)
Release notes
Added support for the
serialize-signed-transaction
andserialize-unsigned-transaction
flags that output transaction bytes instead of executing the transaction for thesui client ptb
command.