chore!: make senders fields private (#13752)

This commit is contained in:
Matthias Seitz
2025-01-09 14:58:09 +01:00
committed by GitHub
parent 66f934b8d0
commit bf65ed45c5
15 changed files with 117 additions and 56 deletions

View File

@ -420,13 +420,13 @@ mod tests {
// Attempt to execute a block with one deposit and one non-deposit transaction
executor
.execute_and_verify_one(&BlockWithSenders {
block: Block {
.execute_and_verify_one(&BlockWithSenders::new_unchecked(
Block {
header,
body: BlockBody { transactions: vec![tx, tx_deposit], ..Default::default() },
},
senders: vec![addr, addr],
})
vec![addr, addr],
))
.unwrap();
let receipts = executor.receipts();
@ -496,13 +496,13 @@ mod tests {
// attempt to execute an empty block with parent beacon block root, this should not fail
executor
.execute_and_verify_one(&BlockWithSenders {
block: Block {
.execute_and_verify_one(&BlockWithSenders::new_unchecked(
Block {
header,
body: BlockBody { transactions: vec![tx, tx_deposit], ..Default::default() },
},
senders: vec![addr, addr],
})
vec![addr, addr],
))
.expect("Executing a block while canyon is active should not fail");
let receipts = executor.receipts();