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

Clean up code for CREATE/CALL #179

Merged
merged 2 commits into from
Aug 17, 2017
Merged

Clean up code for CREATE/CALL #179

merged 2 commits into from
Aug 17, 2017

Conversation

axic
Copy link
Member

@axic axic commented Aug 15, 2017

No description provided.

@axic
Copy link
Member Author

axic commented Aug 16, 2017

@holgerd77 @jwasinger please review this too

@holgerd77
Copy link
Member

What is going on here with the 1 failed test (CallToNameRegistratorTooMuchMemory2), is this intended/expected?

@axic
Copy link
Member Author

axic commented Aug 16, 2017

Need to be figured out why, see no reason for it yet.

Copy link
Member

@holgerd77 holgerd77 left a 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)
Copy link
Contributor

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.

Copy link
Member Author

@axic axic Aug 17, 2017

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.

Copy link
Member Author

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.

Copy link
Contributor

@cdetrio cdetrio left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@axic axic merged commit b1a3bb6 into master Aug 17, 2017
@axic axic deleted the create-cleanup branch August 17, 2017 12:42
@axic axic removed the in progress label Aug 17, 2017
holgerd77 pushed a commit that referenced this pull request Dec 1, 2020
holgerd77 added a commit that referenced this pull request Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants