Skip to content

Commit dbcf8e2

Browse files
committed
test: update 7002 tests
1 parent 4845fa6 commit dbcf8e2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

crates/ethereum/evm/src/execute.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ mod tests {
511511
database::StateProviderDatabase, test_utils::StateProviderTest, TransitionState,
512512
};
513513
use reth_testing_utils::generators::{self, sign_tx_with_key_pair};
514-
use revm_primitives::{bytes, BLOCKHASH_SERVE_WINDOW};
514+
use revm_primitives::BLOCKHASH_SERVE_WINDOW;
515515
use secp256k1::{Keypair, Secp256k1};
516516
use std::collections::HashMap;
517517

@@ -1297,9 +1297,9 @@ mod tests {
12971297
let receipt = receipts.first().unwrap();
12981298
assert!(receipt.success);
12991299

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

13051305
#[test]

crates/ethereum/evm/src/strategy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ mod tests {
273273
eip7002::{WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS, WITHDRAWAL_REQUEST_PREDEPLOY_CODE},
274274
eip7685::EMPTY_REQUESTS_HASH,
275275
};
276-
use alloy_primitives::{b256, bytes, fixed_bytes, keccak256, Bytes, TxKind, B256};
276+
use alloy_primitives::{b256, fixed_bytes, keccak256, Bytes, TxKind, B256};
277277
use reth_chainspec::{ChainSpecBuilder, ForkCondition};
278278
use reth_evm::execute::{
279279
BasicBlockExecutorProvider, BatchExecutor, BlockExecutorProvider, Executor,
@@ -1085,9 +1085,9 @@ mod tests {
10851085
let receipt = receipts.first().unwrap();
10861086
assert!(receipt.success);
10871087

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

10931093
#[test]

0 commit comments

Comments
 (0)