Skip to content

Commit

Permalink
fix: static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Nov 29, 2024
1 parent cb893f9 commit d4393e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bridge-sdk/eth-proof/src/proof_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ pub async fn get_proof_for_event(
}

Ok(EvmProof {
log_index: log_index_in_receipt as u64,
log_index: log_index_in_receipt
.try_into()
.map_err(|err: std::num::TryFromIntError| EthProofError::Other(err.to_string()))?,
log_entry_data: log_data.ok_or(EthProofError::Other(
"Log not found based on the transaction hash and index provided".to_string(),
))?,
Expand Down
2 changes: 1 addition & 1 deletion bridge-sdk/near-rpc-client/src/near_rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn get_last_near_block_height(server_addr: &str) -> Result<u64, NearRp
};

let block_info = client.call(request).await?;
Ok(block_info.header.height as u64)
Ok(block_info.header.height)
}

pub async fn get_block(
Expand Down

0 comments on commit d4393e7

Please sign in to comment.