mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 04:15:54 +00:00
236a65d598
Move the EVM setup and call in fixtures "vm json tests" to new function `fixtureCallEvm` in `call_evm`. Extra return values needed for testing are returned specially. This entry point is different from all other `..CallEvm` type functions, because it uses `executeOpcodes` instead of `execComputation`, so it doesn't update the account balance or nonce on entry and exit from the EVM. The new code is a bit redundant and simplistic intentionally, as the purpose is to move functionality to `call_evm` with high confidence nothing really changed. The calls will be jointly refactored afterwards to merge differences. Signed-off-by: Jamie Lokier <jamie@shareable.org>