chore: rm some direct header access (#13633)

This commit is contained in:
Matthias Seitz
2025-01-03 17:40:00 +01:00
committed by GitHub
parent 8f854cbbb6
commit 9923e5ac5b
9 changed files with 28 additions and 28 deletions

View File

@ -543,11 +543,11 @@ mod tests {
let mut block2 = block;
// Set the hashes of block1 and block2
block1.block.header.set_block_number(10);
block1.block.header.set_hash(block1_hash);
block1.block.set_block_number(10);
block1.block.set_hash(block1_hash);
block2.block.header.set_block_number(11);
block2.block.header.set_hash(block2_hash);
block2.block.set_block_number(11);
block2.block.set_hash(block2_hash);
// Create a random receipt object, receipt1
let receipt1 = OpReceipt::Legacy(Receipt {