Skip to content

fix error string repr #637

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 1 commit into from
Jun 4, 2025
Merged

fix error string repr #637

merged 1 commit into from
Jun 4, 2025

Conversation

dvush
Copy link
Contributor

@dvush dvush commented May 30, 2025

πŸ“ Summary

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@Copilot Copilot AI review requested due to automatic review settings May 30, 2025 16:10
@dvush dvush requested a review from ZanCorDX as a code owner May 30, 2025 16:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR corrects the formatting of the RawShareBundleConvertError::FailedToDecodeTransaction display string to reference the underlying error in its second placeholder.

  • Fixed incorrect placeholder in error message for transaction decoding errors.
Comments suppressed due to low confidence (1)

crates/rbuilder/src/primitives/serialize.rs:529

  • Add a unit test to ensure that FailedToDecodeTransaction correctly formats both the index and the underlying TxWithBlobsCreateError in its display output.
#[error("Failed to decode transaction, idx: {0}, error: {1}")]

@dvush dvush merged commit 2036625 into develop Jun 4, 2025
2 of 3 checks passed
@dvush dvush deleted the fix_conversion_error_2025-05-30 branch June 4, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants