From 75f4dfe297342b90854e24ba261db4d8cbeccadc Mon Sep 17 00:00:00 2001 From: Naman Garg <0708ng@gmail.com> Date: Fri, 19 Jul 2024 16:28:38 +0530 Subject: [PATCH] chore(sidecar): test --- bolt-sidecar/src/state/execution.rs | 42 +++++------------------------ 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/bolt-sidecar/src/state/execution.rs b/bolt-sidecar/src/state/execution.rs index 73fac2969..34a51608f 100644 --- a/bolt-sidecar/src/state/execution.rs +++ b/bolt-sidecar/src/state/execution.rs @@ -482,11 +482,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap(); @@ -511,11 +507,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap(); @@ -555,11 +547,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap(); @@ -645,11 +633,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap(); @@ -711,11 +695,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let basefee = state.basefee(); @@ -781,11 +761,7 @@ mod tests { let client = StateClient::new(anvil.endpoint_url()); let provider = ProviderBuilder::new().on_http(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap(); @@ -851,11 +827,7 @@ mod tests { let anvil = launch_anvil(); let client = StateClient::new(anvil.endpoint_url()); - let limits: Limits = Limits { - max_commitments_per_slot: NonZero::new(10).unwrap(), - max_committed_gas_per_slot: NonZero::new(10_000_000).unwrap(), - }; - let mut state = ExecutionState::new(client.clone(), limits).await?; + let mut state = ExecutionState::new(client.clone(), Limits::default()).await?; let sender = anvil.addresses().first().unwrap(); let sender_pk = anvil.keys().first().unwrap();