diff --git a/core/node/da_clients/src/eigen/verifier.rs b/core/node/da_clients/src/eigen/verifier.rs index e55f12f634d..b8d16f8ad51 100644 --- a/core/node/da_clients/src/eigen/verifier.rs +++ b/core/node/da_clients/src/eigen/verifier.rs @@ -104,7 +104,6 @@ impl Verifier { pub const POINT_SIZE: u32 = 32; async fn save_point(url: Url, point: String) -> Result<(), VerificationError> { - //let url = Url::parse(&url).map_err(|_| VerificationError::LinkError)?; let response = reqwest::get(url) .await .map_err(|_| VerificationError::LinkError)?; @@ -368,9 +367,7 @@ impl Verifier { let output_type = [ParamType::Bytes]; let tokens: Vec = ethabi::decode(&output_type, &encoded) .map_err(|_| "Incorrect result on contract call")?; - let token = tokens - .get(0) - .ok_or_else(|| "Incorrect result on contract call")?; + let token = tokens.first().ok_or("Incorrect result on contract call")?; match token { Token::Bytes(data) => Ok(data.to_vec()), _ => Err("Incorrect result on contract call".to_string()),