-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Ramain traces in json ouput #7166
Comments
The JSON output is the raw ABI encoded representation of the return data. |
Thanks for the reply, do you mean that I can only process the generated raw data in the JSON output? Can I directly utilize the functionality that Foundry has already implemented to make it processed the same as the console? |
@onbjerg I think he means that |
Then it's a duplicate of #6922 |
Component
Forge
Describe the feature you would like
Ramain traces in json ouput for the latest version
0.2.0 (1bb2d67 2024-02-19T00:17:15.443050638Z)
like in old version (e.g.,0.2.0 (638bd2e 2023-05-23T09:59:16.241585900Z)
.version:
forge 0.2.0 (1bb2d67 2024-02-19T00:17:15.443050638Z)
system:
ubuntu
command:
forge test --contracts ./test.sol -vvvvv -j --ffi > ./test.json
output:
expected behavior:
traces
intest_diff()
Additional context
I have a small question, the result display in console and export the json are different, how to achieve consistency?
For example, the returned data of VM::stopAndReturnStateDiff() is structed like
But the data in json file is raw data. Here, I used old version 0.2.0 (638bd2e 2023-05-23T09:59:16.241585900Z)`.
The text was updated successfully, but these errors were encountered: