From 005e73b046e8d01ecf26e19fff10e38fa83b2d4b Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:57:24 -0300 Subject: [PATCH] Address comments --- core/node/da_clients/src/eigen/verifier.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()),