Skip to content

forc call verbosity levels #7074

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

Merged
merged 9 commits into from
Apr 9, 2025
Merged

forc call verbosity levels #7074

merged 9 commits into from
Apr 9, 2025

Conversation

zees-dev
Copy link
Contributor

@zees-dev zees-dev commented Apr 8, 2025

Description

  • Introduces verbosity levels for the forc-call command, replacing the show-receipts flag
  • Verbosity v1 prints the following additional info:
    • logs
  • Verbosity v2 prints the following additional info:
    • receipts
    • script json (tx.json)

Note: The tx.json printed in the response can be used by forc-debug to debug the transaction
^ Addresses: #7019

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@zees-dev zees-dev requested a review from a team as a code owner April 8, 2025 23:58
@zees-dev zees-dev force-pushed the feat/forc-call-tx-info branch from a1d9be2 to cfc880f Compare April 9, 2025 00:01
@zees-dev zees-dev self-assigned this Apr 9, 2025
@zees-dev zees-dev added enhancement New feature or request forc forc-call Everything related to the `forc-call` plugin in `forc-client` package team:tooling Tooling Team labels Apr 9, 2025
@JoshuaBatty JoshuaBatty requested a review from a team April 9, 2025 02:41
Copy link
Member

@kayagokalp kayagokalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! before closing the #7019 should we add the ability to output it to a file? it might be little frustrating to copy paste into a file from terminal?

@zees-dev zees-dev merged commit 4d18d52 into master Apr 9, 2025
38 checks passed
@zees-dev zees-dev deleted the feat/forc-call-tx-info branch April 9, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request forc forc-call Everything related to the `forc-call` plugin in `forc-client` package team:tooling Tooling Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants