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(network): Partially structuring RejectReason #562

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sterraf
Copy link
Contributor

@sterraf sterraf commented Dec 17, 2024

This PR decodes the RejectReason after a failed local Tx submission by structuring into two variants:

  1. Plutus errors (an ASCII string); or
  2. an (Era, Vec<TxError>) pair.

The TxError type, in turn, will be further structured in subsequent PRs. As of now, it has an ExtraneousScriptWitnessesUTXOW variant corresponding to the appropriate ConwayUtxowPredFailure , an u8 variant, and finally a raw variant holding cases that have not been analyzed yet.

A unit test using an up-to-date preprod node response was added to codec.rs.

@sterraf sterraf changed the title Partially structuring RejectReason feat(network): Partially structuring RejectReason Dec 17, 2024
@sterraf
Copy link
Contributor Author

sterraf commented Dec 18, 2024

I've recently learned about the related #495. It might be necessary to determine its status.

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.

1 participant