From dcc7b49cf2ee208d18e5b8a60df67bf5c3ba8469 Mon Sep 17 00:00:00 2001 From: clabby Date: Tue, 14 Jan 2025 16:01:23 -0500 Subject: [PATCH] lint --- bin/client/src/interop.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/client/src/interop.rs b/bin/client/src/interop.rs index 7d3a8173..fbac5d12 100644 --- a/bin/client/src/interop.rs +++ b/bin/client/src/interop.rs @@ -40,7 +40,7 @@ pub enum FaultProofProgramError { Driver(#[from] DriverError), /// An error occurred during RLP decoding. #[error("RLP decoding error: {0}")] - RLPDecodingError(#[from] alloy_rlp::Error), + RLPDecodingError(alloy_rlp::Error), } /// Executes the fault proof program with the given [PreimageOracleClient] and [HintWriterClient]. @@ -76,7 +76,8 @@ where // Load in the pre-state from the preimage oracle and fetch the L2 safe head block hash. let pre = - PreState::decode(&mut read_raw_pre_state(oracle.as_ref(), boot.as_ref()).await?.as_ref())?; + PreState::decode(&mut read_raw_pre_state(oracle.as_ref(), boot.as_ref()).await?.as_ref()) + .map_err(FaultProofProgramError::RLPDecodingError)?; let safe_head_hash = fetch_l2_safe_head_hash(oracle.as_ref(), &pre).await?; // Instantiate the L1 EL + CL provider and the L2 EL provider.