-
Notifications
You must be signed in to change notification settings - Fork 48
Fix gas related to CREATE #250
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
Conversation
Update gas calc to match fix in ewasm/hera#250
Update gas calc to match fix in ewasm/hera#250
|
ewasm/tests#44 was just merged, we should rerun these tests. I get an error saying I can't re-trigger the tests since I don't have write permission. @axic could you please rerun? 🙏 |
|
I don't think it should have all this debugging as the output will go crazy. I'll remove them. Also doesn't compile in release mode. |
src/eei.cpp
Outdated
| // NOTE: this must be declared outside the condition to ensure the memory doesn't go out of scope | ||
| vector<uint8_t> contract_code; | ||
| HERA_DEBUG << "Taking GasSchedule::create" << endl; | ||
| takeInterfaceGas(GasSchedule::create); |
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 don't think this is the correct place. Should be grouped with the other takeInterfaceGas call. Moved.
|
@lrettig have a look if you still ok with version. |
|
Merging this now because of ewasm/tests#44 every other PR is failing now. |
Update gas calc to match fix in ewasm/hera#250
Requires ewasm/tests#44
Take base gas before doing 63/64 calc and refund remaining gas after call.
Also includes a bunch more gas-related debug output and a new debug flag to keep evm2wasm output files around for debugging.