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

Predicate input validation tests #594

Merged
merged 5 commits into from
Oct 5, 2023

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Oct 2, 2023

Closes #181

Also improves error propagation so that predicate error message better reflects the reason for invalidation. For instance, it now includes the disallowed contract opcode which was not accepted in predicate exection context.

@Dentosal Dentosal self-assigned this Oct 2, 2023
@Dentosal Dentosal added breaking A breaking api change tech-debt labels Oct 2, 2023
@Dentosal Dentosal marked this pull request as ready for review October 2, 2023 15:59
@Dentosal Dentosal requested a review from a team October 2, 2023 16:00
macro_rules! predicate_input {
($predicate:expr) => {{
let predicate: Vec<u8> = $predicate.into_iter().collect();
let owner = Input::predicate_owner(&predicate, &ChainId::default());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I thought that this issue was related to message_data_predicate and message_coin_predicate inputs=D

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops fixed the wrong thing =D. Moving back to a draft so I'll add tests fro those as well.

@Dentosal Dentosal marked this pull request as draft October 2, 2023 16:56
@Dentosal Dentosal marked this pull request as ready for review October 5, 2023 09:42
@Dentosal Dentosal added this pull request to the merge queue Oct 5, 2023
Merged via the queue into master with commit 028ff72 Oct 5, 2023
37 checks passed
@Dentosal Dentosal deleted the dento/predicate-input-validation-tests branch October 5, 2023 09:49
@xgreenx xgreenx mentioned this pull request Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A breaking api change tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add message predicate verification tests
2 participants