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

Add mocked_host library #456

Merged
merged 4 commits into from
Nov 21, 2019
Merged

Add mocked_host library #456

merged 4 commits into from
Nov 21, 2019

Conversation

chfast
Copy link
Member

@chfast chfast commented Nov 18, 2019

It takes the MockedHost implementation from evmone and creates an interface library out of it.

Part of #447. Closes #334.

@chfast chfast force-pushed the mocked_host branch 4 times, most recently from 223517f to 07b102f Compare November 19, 2019 10:21
@chfast chfast marked this pull request as ready for review November 19, 2019 10:31
@chfast chfast requested a review from gumb0 November 19, 2019 10:31
include/evmc/mocked_host.hpp Outdated Show resolved Hide resolved
include/evmc/mocked_host.hpp Outdated Show resolved Hide resolved
call_msg.input_data = input_copy.data();
}
}
return result{call_result};
Copy link
Member

Choose a reason for hiding this comment

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

If there is a single call_result it is not possible to deal with precompiles? Well, this function can be overriden. Have a look at the precompile stuff soltest is doing.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR is for moving MockedHost from evmone. I will handle solidity later.

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

I think it shouldn't refer to 1283 alone, but also to 2200.

As a first step the PR does look good, however.

@chfast
Copy link
Member Author

chfast commented Nov 21, 2019

I think it shouldn't refer to 1283 alone, but also to 2200.

Referencing EIP-2200 needs additional work to check its spec and it is still a draft.

It takes the MockedHost implementation from evmone, converts it to C++11 and creates an interface library out of it.
@chfast chfast merged commit e04a90e into master Nov 21, 2019
@chfast chfast deleted the mocked_host branch November 21, 2019 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a library out of example_host
3 participants