Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Dec 18, 2024
1 parent 7183a92 commit 005e73b
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 @@ -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)?;
Expand Down Expand Up @@ -368,9 +367,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 005e73b

Please sign in to comment.