-
Notifications
You must be signed in to change notification settings - Fork 116
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(snapshot): post-processing outputs #203
Conversation
b8411a1
to
6bd0551
Compare
I'll take a look tonight! |
In these expressions there are an odd number of parenthesis, so the find_balanced_encapsulator is not finding the closing one. |
Sounds good! i'll review tonight :) |
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.
Looking great so far!
cleaned = simplify_parentheses(&cleaned, paren_index); | ||
} else { | ||
// remove double negation, if one exists | ||
if cleaned.contains("!!") { |
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 if statement might be redundant, since replace will replace nothing if !!
doesnt exist in the string.
} | ||
|
||
#[test] | ||
fn test_double_negation() { |
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.
Is this test accurate?
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 is where I was confused -- in fact we should expect:
if (storage[keccak256(memory[0])] == Oxfffffffffffffffffffffffffffffffffffffffff)
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.
yep that makes sense to me
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.
really struggling on these nested negations like !(!(...)), maybe I could put up another issue in case someone wants to help?
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 can help out with this!
pending #290 :) ill tackle soon! |
closing as snapshot is being removed in |
fixes #177