-
Notifications
You must be signed in to change notification settings - Fork 87
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
Conversation
macro_rules! predicate_input { | ||
($predicate:expr) => {{ | ||
let predicate: Vec<u8> = $predicate.into_iter().collect(); | ||
let owner = Input::predicate_owner(&predicate, &ChainId::default()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.