-
Notifications
You must be signed in to change notification settings - Fork 765
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
Clean up code for CREATE/CALL #179
Conversation
@holgerd77 @jwasinger please review this too |
What is going on here with the 1 failed test ( |
Need to be figured out why, see no reason for it yet. |
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.
Had a look through the code changes, generally looks good to me but definitely second review required.
Maybe the failing test is triggered by the removed localOpts.outLength
condition check? Just a guess.
lib/opFns.js
Outdated
@@ -581,7 +588,6 @@ module.exports = { | |||
}) | |||
|
|||
try { | |||
checkCallMemCost(runState, options, localOpts) |
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 the issue is. Add this line back in to make the test pass.
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.
It makes no sense as the localOpts
are not changing at that point. Does the test expect gas deducted twice? The reason must be understood.
Update: it doesn't fix it for 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.
Derp. It is never called in that function before. Note to self: shouldn't do these PRs late in the evening.
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.
lgtm, thanks!
No description provided.