Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
* remove evmone (they are all Prague based)
* remove evmone exclusions
* use eip7692@v2.0.0 for eest
* port in EXTDELEGATE precompile fix
* remove references to test directories that are
  not valid with current specs
  • Loading branch information
shemnon committed Oct 24, 2024
1 parent a1ce5c2 commit ac86c0f
Show file tree
Hide file tree
Showing 449 changed files with 22,609 additions and 12,425 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ethereum-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ jobs:
ethtests/EIPTests/StateTests/stEIP1153-transientStorage/ \
ethtests/EIPTests/StateTests/stEIP4844-blobtransactions/ \
ethtests/EIPTests/StateTests/stEIP2537/ \
ethtests/EIPTests/StateTests/stEOF \
tests/eof_suite/eest/state_tests \
tests/eof_suite/evmone/state_tests \
tests/prague_suite/state_tests
- name: Run EOF validation tests
run: |
cross run --target ${{matrix.target}} --profile ${{ matrix.profile }} -p revme -- eof-validation \
ethtests/EOFTests \
tests/eof_suite/eest/eof_tests/prague \
tests/eof_suite/evmone/eof_tests
tests/eof_suite/eest/eof_tests/osaka
11 changes: 0 additions & 11 deletions bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ fn skip_test(path: &Path) -> bool {
| "static_Call50000_sha256.json"
| "loopMul.json"
| "CALLBlake2f_MaxRounds.json"

// evmone statetest
| "initcode_transaction_before_prague.json"
| "invalid_tx_non_existing_sender.json"
| "tx_non_existing_sender.json"
| "block_apply_withdrawal.json"
| "block_apply_ommers_reward.json"
| "known_block_hash.json"
| "eip7516_blob_base_fee.json"
| "create_tx_collision_storage.json"
| "create_collision_storage.json"
)
}

Expand Down
13 changes: 9 additions & 4 deletions crates/revm/src/context/evm_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,14 @@ where
_ => {}
};

if let Some(result) = self.call_precompile(&inputs.bytecode_address, &inputs.input, gas)? {
let is_ext_delegate = inputs.scheme.is_ext_delegate_call();

if let Some(result) = self.call_precompile(
&inputs.bytecode_address,
&inputs.input,
gas,
is_ext_delegate,
)? {
if matches!(result.result, return_ok!()) {
self.journaled_state.checkpoint_commit();
} else {
Expand All @@ -224,9 +231,7 @@ where
let mut bytecode = account.info.code.clone().unwrap_or_default();

// ExtDelegateCall is not allowed to call non-EOF contracts.
if inputs.scheme.is_ext_delegate_call()
&& !bytecode.bytes_slice().starts_with(&EOF_MAGIC_BYTES)
{
if is_ext_delegate && !bytecode.bytes_slice().starts_with(&EOF_MAGIC_BYTES) {
return return_result(InstructionResult::InvalidExtDelegateCallTarget);
}

Expand Down
319 changes: 0 additions & 319 deletions tests/eof_suite/eest/.meta/assets/style.css

This file was deleted.

Loading

0 comments on commit ac86c0f

Please sign in to comment.