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

Refactor validation status to match all other API changes #260

Merged
merged 4 commits into from
Jul 18, 2024

Conversation

dr-orlovsky
Copy link
Member

@dr-orlovsky dr-orlovsky commented Jul 11, 2024

Closes #259, #254

With the recent clarification on the use of resolvers and consignment-stored transaction ("public witness") information (see RCP-240313A for the details) there is no reason to provide separate fields listing unresolved transaction/witnesses - they all can be retrieved from Failure::SealNoPubWitness variants when iterating over failures vector.

I also moved UncheckableConfidentialState from info to warning (since it is the client who needs to decide whether this is important) and removed unused warning variant.

@dr-orlovsky dr-orlovsky added the refactoring Code refactoring label Jul 11, 2024
@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Jul 11, 2024
@dr-orlovsky dr-orlovsky requested review from nicbus and zoedberg July 11, 2024 08:49
@dr-orlovsky dr-orlovsky self-assigned this Jul 11, 2024
@dr-orlovsky dr-orlovsky linked an issue Jul 11, 2024 that may be closed by this pull request
Copy link
Contributor

@zoedberg zoedberg left a comment

Choose a reason for hiding this comment

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

This PR somehow breaks issuance. Now the call builder.issue_contract (where builder is a ContractBuilder) fails with the following error:

ContractInconsistency(Status { failures: [], warnings: [], info: [] })

Checkout to https://github.com/zoedberg/rgb-integration-tests/tree/validity (and remember to update submodules) to see the issue (run cargo test --test issuance issue_nia::case_1)

@dr-orlovsky
Copy link
Member Author

@zoedberg should be fixed with 85af0b7

Copy link
Contributor

@zoedberg zoedberg left a comment

Choose a reason for hiding this comment

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

I confirm now issuance works and the PR fixes #254.
tACK 85af0b7

@dr-orlovsky dr-orlovsky merged commit 431c58a into master Jul 18, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring
Projects
Status: Done
2 participants