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

RPC Server: handle create_basic_transaction_with_data method hex decoding errors gracefully #3198

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

Eligioo
Copy link
Member

@Eligioo Eligioo commented Dec 16, 2024

What's in this pull request?

Instead of panicking during a failed hex decoding, gracefully handle the error.

Properly informing the consumer that a hex representation is expected will be part of different PR.

This fixes #3197.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@Eligioo Eligioo requested a review from jsdanielh December 16, 2024 13:54
@Eligioo Eligioo added the bug Something isn't working label Dec 16, 2024
Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

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

LGTM

@jsdanielh jsdanielh force-pushed the stefan/panic-create-txn-panic branch from 367aacf to f5ef915 Compare December 24, 2024 06:22
@jsdanielh jsdanielh merged commit f5ef915 into albatross Dec 24, 2024
7 checks passed
@jsdanielh jsdanielh deleted the stefan/panic-create-txn-panic branch December 24, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

createBasicTransactionWithData empty response
3 participants