Skip to content

feat: include PC abort reason in tx receipt #6018

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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Apr 16, 2025

Including this message (which currently only shows in the logs) should be very helpful for users to understand what went wrong in their transaction. I think another change is needed to pass this vm_error from the transaction receipt to event listeners, which would then enable the API to consume this information and show it in places like the Explorer. cc @zone117x

@obycode obycode requested a review from a team as a code owner April 16, 2025 16:45
@obycode obycode requested review from hstove and kantai and removed request for a team April 16, 2025 16:45
Copy link
Contributor

@kantai kantai left a comment

Choose a reason for hiding this comment

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

This LGTM, just a comment on a refactor that should improve readability.

@obycode obycode requested a review from kantai April 16, 2025 21:04
@obycode obycode added this to the 3.1.0.0.9 milestone Apr 17, 2025
@obycode obycode moved this to Status: In Review in Stacks Core Eng Apr 17, 2025
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just requesting the comment to be updated

@github-project-automation github-project-automation bot moved this from Status: In Review to Status: 💻 In Progress in Stacks Core Eng Apr 17, 2025
Previously, this callback returned a boolean indicating whether the
transaction should be rolled back. Now it returns an optional string,
where the string indicates a reason for the abort.
hstove
hstove previously approved these changes Apr 17, 2025
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

LGTM! I can't actually resolve my comments, but feel free to do so.

Copy link
Contributor

@kantai kantai left a comment

Choose a reason for hiding this comment

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

LGTM, just a rustdocs request.

@obycode obycode requested a review from kantai April 18, 2025 17:39
@obycode
Copy link
Contributor Author

obycode commented Apr 30, 2025

Merge conflict resolved and ready for re-review.

@obycode obycode requested a review from hstove April 30, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Status: 💻 In Progress
Development

Successfully merging this pull request may close these issues.

3 participants