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

@ -784,13 +784,13 @@ mod tests {
let block1_hash = B256::new([15; 32]);
block1.set_block_number(1);
block1.set_hash(block1_hash);
block1.senders.push(Address::new([4; 20]));
block1.push_sender(Address::new([4; 20]));
let mut block2: SealedBlockWithSenders = Default::default();
let block2_hash = B256::new([16; 32]);
block2.set_block_number(2);
block2.set_hash(block2_hash);
block2.senders.push(Address::new([4; 20]));
block2.push_sender(Address::new([4; 20]));
let mut block_state_extended = execution_outcome1;
block_state_extended.extend(execution_outcome2);