-
Notifications
You must be signed in to change notification settings - Fork 82
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: add --show-outputs flag #269
Conversation
…ra-test-node into feat-add-show-outputs-flag
@@ -218,6 +218,9 @@ struct Cli { | |||
#[arg(long, default_value = "none")] | |||
/// Show call debug information | |||
show_calls: ShowCalls, | |||
#[arg[long]] | |||
/// Show call output | |||
show_outputs: bool, |
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.
This is awesome, thank you!!
One thing we've done with the other feature flags, is to have them be configurable via API calls in the config_
namespace( example config_setResolveHashes). So if you forgot to enable Call Output when you start the in-memory node, you don't have to restart the node and potentially lose state.
I think we might want to do the same here, thoughts?
Here are some other config_
API examples: https://github.com/matter-labs/era-test-node/blob/main/SUPPORTED_APIS.md#config_setresolvehashes
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.
That makes sense, added the API calls
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.
LGTM
What 💻
Add
--show-outputs
flag to be able to see the outputs of every callWhy ✋
The option to show the call outputs could be convenient while debugging(especially while debugging system calls, that was my use case for it) because it allows greater transparency.
Evidence 📷
How it looks in terminal:
