-
Notifications
You must be signed in to change notification settings - Fork 322
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
Add a test that fails before PR 4482 #328
Conversation
This PR adds a test on ecpairing where g1 is invalid while g2 is zero. cpp-ethereum before PR 4482 accidentially returned some answer in this case. It should throw.
} | ||
} | ||
], | ||
"explanation": "Puts the given data into the ECPAIRING precompile" |
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.
we agreed to use //for comments in the fillers
and if you want the comment to end up in generated test fill the description into
"_info" : {
"comment" : ""
}
_info.comment should be copied to the final test when filling
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.
OK.
@winsvega I added a comment in |
{ | ||
"ecpairing_one_point_with_g2_zero_and_g1_invalid" : { | ||
"_info" : { | ||
"comment" : "", |
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.
this field should be filled by testeth if there is one in a filler file
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.
testeth does not do that. So testeth has a bug.
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.
This PR adds a test on ecpairing where g1 is invalid while g2 is zero.
cpp-ethereum before PR 4482 accidentially returned some answer in this case. It should throw.