Skip to content

Conversation

@lrettig
Copy link
Member

@lrettig lrettig commented Jun 2, 2018

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.

lrettig added a commit to lrettig/tests that referenced this pull request Jun 5, 2018
lrettig added a commit to ewasm/tests that referenced this pull request Jun 8, 2018
@lrettig
Copy link
Member Author

lrettig commented Jun 8, 2018

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? 🙏

@axic axic changed the title Fix gas related to CREATE (WIP) [WIP] Fix gas related to CREATE Jun 11, 2018
@axic
Copy link
Member

axic commented Jun 11, 2018

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);
Copy link
Member

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.

@axic axic force-pushed the fix-create-gas branch from 0bebef7 to 43039ff Compare June 11, 2018 15:32
@axic
Copy link
Member

axic commented Jun 11, 2018

@lrettig have a look if you still ok with version.

@axic axic changed the title [WIP] Fix gas related to CREATE Fix gas related to CREATE Jun 11, 2018
@axic
Copy link
Member

axic commented Jun 11, 2018

Merging this now because of ewasm/tests#44 every other PR is failing now.

@axic axic merged commit 00df19d into ewasm:master Jun 11, 2018
jakelang added a commit that referenced this pull request Jun 12, 2018
@jakelang jakelang mentioned this pull request Jun 12, 2018
jakelang added a commit that referenced this pull request Jul 16, 2018
jakelang added a commit that referenced this pull request Jul 17, 2018
jakelang added a commit that referenced this pull request Jul 27, 2018
jakelang added a commit that referenced this pull request Jul 29, 2018
hugo-dc pushed a commit to ewasm/tests that referenced this pull request Nov 3, 2018
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.

2 participants