From 719b71757534af93c83d8cd1bbd39e432c208c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Thu, 11 Jul 2024 14:05:30 -0300 Subject: [PATCH] Remove unused generic --- replay/src/benchmark.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/replay/src/benchmark.rs b/replay/src/benchmark.rs index 31c05a4..d4e27f4 100644 --- a/replay/src/benchmark.rs +++ b/replay/src/benchmark.rs @@ -13,8 +13,8 @@ use starknet_api::{ }; use tracing::{error, info}; -pub type BlockCachedData = ( - CachedState, +pub type BlockCachedData = ( + CachedState>, BlockContext, Vec<(TransactionHash, SNTransaction)>, ); @@ -30,7 +30,7 @@ pub fn fetch_block_range_data( block_start: BlockNumber, block_end: BlockNumber, chain: RpcChain, -) -> Vec>> { +) -> Vec { let mut block_caches = Vec::new(); for block_number in block_start.0..=block_end.0 { @@ -74,7 +74,7 @@ pub fn fetch_block_range_data( /// Executes the given block range, discarding any state changes applied to it /// /// Can also be used to fill up the cache -pub fn execute_block_range(block_range_data: &mut Vec>) { +pub fn execute_block_range(block_range_data: &mut Vec) { for (state, block_context, transactions) in block_range_data { // For each block