Skip to content

Commit

Permalink
Merge branch 'eigen-client-solve-comments-p4' into eigen-client-solve…
Browse files Browse the repository at this point in the history
…-comments-p5
  • Loading branch information
juan518munoz committed Dec 19, 2024
2 parents 8d97116 + 005e73b commit 62b2f5a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/node/da_clients/src/eigen/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,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)?;
Expand Down Expand Up @@ -376,9 +375,7 @@ impl Verifier {
let output_type = [ParamType::Bytes];
let tokens: Vec<Token> = 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()),
Expand Down

0 comments on commit 62b2f5a

Please sign in to comment.