Skip to content
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(forge/script): decode execution traces when --json is enabled #10109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

0xpanoramix
Copy link

@0xpanoramix 0xpanoramix commented Mar 18, 2025

Motivation

This PR resolves #10019.

More precisely, it ensures that the execution traces are decoded when the --json flag is enabled for the forge script command.
With those changes, the command prints all the decoded values and not just null.

Solution

I forced the decoding of the traces after the execution has completed, right before the result object is encoded in JSON and printing to the stdout.

Note: I updated the existing CLI test.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

feat(forge script): add --json output support
1 participant