-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat(iota): return String from PTB::execute() #5045
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
} | ||
transaction_response.to_string() | ||
}; | ||
println!("{result_string}"); |
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 it would be useful to have a function that creates the string without printing it, more flexible
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 tried this, but then I don't see a way to render the output in special ways like the help output does currently with some words for example fat and with underline
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.
Are you saying we are losing this information when converted to a string?
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.
Yes, unless we return StyledStr, but that seems to be more annoying to work with
Description of change
Return a String from PTB::execute so one can use it for tests
Links to any relevant issues
Fixes #5032
Type of change
How the change has been tested
Modified test and running ptb commands like
cargo run client ptb --help
to verify that they still print the same as before and nothing duplicated