Skip to content

Commit

Permalink
test: update 7002 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Oct 19, 2024
1 parent 4845fa6 commit dbcf8e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions crates/ethereum/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ mod tests {
database::StateProviderDatabase, test_utils::StateProviderTest, TransitionState,
};
use reth_testing_utils::generators::{self, sign_tx_with_key_pair};
use revm_primitives::{bytes, BLOCKHASH_SERVE_WINDOW};
use revm_primitives::BLOCKHASH_SERVE_WINDOW;
use secp256k1::{Keypair, Secp256k1};
use std::collections::HashMap;

Expand Down Expand Up @@ -1297,9 +1297,9 @@ mod tests {
let receipt = receipts.first().unwrap();
assert!(receipt.success);

let request = requests.first().unwrap();
// TODO: must be empty? @onbjerg
assert_eq!(request, &bytes!("00")); // todo: placeholder
assert!(requests[0].is_empty(), "there should be no deposits");
assert!(!requests[1].is_empty(), "there should be a withdrawal");
assert!(requests[2].is_empty(), "there should be no consolidations");
}

#[test]
Expand Down
8 changes: 4 additions & 4 deletions crates/ethereum/evm/src/strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ mod tests {
eip7002::{WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS, WITHDRAWAL_REQUEST_PREDEPLOY_CODE},
eip7685::EMPTY_REQUESTS_HASH,
};
use alloy_primitives::{b256, bytes, fixed_bytes, keccak256, Bytes, TxKind, B256};
use alloy_primitives::{b256, fixed_bytes, keccak256, Bytes, TxKind, B256};
use reth_chainspec::{ChainSpecBuilder, ForkCondition};
use reth_evm::execute::{
BasicBlockExecutorProvider, BatchExecutor, BlockExecutorProvider, Executor,
Expand Down Expand Up @@ -1085,9 +1085,9 @@ mod tests {
let receipt = receipts.first().unwrap();
assert!(receipt.success);

let request = requests.first().unwrap();
// TODO: must be empty? @onbjerg
assert_eq!(request, &bytes!("00")); // todo: placeholder
assert!(requests[0].is_empty(), "there should be no deposits");
assert!(!requests[1].is_empty(), "there should be a withdrawal");
assert!(requests[2].is_empty(), "there should be no consolidations");
}

#[test]
Expand Down

0 comments on commit dbcf8e2

Please sign in to comment.