-
Notifications
You must be signed in to change notification settings - Fork 231
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
fix: make Parity TraceResults output optional #1102
Conversation
That will resolve the issue when the RPC server returns "output": null, as Nethermind does.
}, | ||
"trace": [], | ||
"vmTrace": null, | ||
"transactionHash": "0xe56a5e7455c45b1842b35dbcab9d024b21870ee59820525091e183b573b4f9eb" |
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.
is this a real transaction?
wasn't able to find it
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.
fn test_nethermind_trace_result_null_output_value() { | ||
let reference_data = r#"{ | ||
"output": null, |
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.
is there a nethermind issue for this, I want to understand when this can be null to rule out something we may have missed
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.
To be honest, I didn't dig very deeply, but it seems that vm_trace can also be null.
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.
looking at the og docs
https://openethereum.github.io/JSONRPC-trace-module#trace_transaction
it looks like output should always be there
so treating null as empty makes sense
* Update parity.rs Bytes to Option<Bytes> That will resolve the issue when the RPC server returns "output": null, as Nethermind does. * Use null_as_default for handling null output and added test
That will resolve the issue when the RPC server returns "output": null, as Nethermind does.
Motivation
That will resolve the issue when the RPC server returns "output": null, as Nethermind does.
Solution
PR Checklist