Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Create EIP1380 gas cost tests for aleth-interpreter #5778

Open
halfalicious opened this issue Oct 15, 2019 · 0 comments
Open

Create EIP1380 gas cost tests for aleth-interpreter #5778

halfalicious opened this issue Oct 15, 2019 · 0 comments
Assignees

Comments

@halfalicious
Copy link
Contributor

I've created eip1380 (call-to-self) tests which exercise my LegacyVM implementation (see #5752) and validate gas costs but still need to create tests which validate my aleth-interpreter implementation (which was merged in #5753). The tests will need to be created using EVMOne since the EVMC interface doesn't allow one to validate gas costs (EVMC::exec doesn't take a callback).

For reference, one validates the gas cost of LegacyVM ops via the OnOp callback passed in here:

owning_bytes_ref LegacyVM::exec(u256& _io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp)

EVMC::exec doesn't accept this callback parameter:

owning_bytes_ref VM::exec(evmc_host_context* _context, evmc_revision _rev, const evmc_message* _msg,

EVMOne's test infrastructure has support for validating gas costs, I need to investigate how it works.

@halfalicious halfalicious self-assigned this Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant