feat: generalize Block impls (#14133)

This commit is contained in:
Arsenii Kulikov
2025-02-01 02:05:09 +04:00
committed by GitHub
parent 1c9ef8c5a3
commit a39980a6f6
12 changed files with 49 additions and 39 deletions

View File

@ -64,7 +64,7 @@ async fn test_get_body() {
for _ in 0..100 {
// Set a new random block to the mock storage and request it via the network
let block_hash = rng.gen();
let mut block = Block::default();
let mut block: Block = Block::default();
block.body.transactions.push(rng_transaction(&mut rng));
mock_provider.add_block(block_hash, block.clone());