Skip to content

Commit

Permalink
typos requests.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pricstas authored Dec 18, 2024
1 parent aa90995 commit a470ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/indexer/src/handlers/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub async fn reqs_info_from_wallet(
Path(wallet): Path<String>,
state: State<AppState>,
) -> Result<Json<Vec<RequestInfo>>, (StatusCode, String)> {
let wallet = normalize_hex(&wallet).expect("Wallet address shall be an hexadecimal string");
let wallet = normalize_hex(&wallet).expect("Wallet address shall be a hexadecimal string");

let mut dtos: Vec<RequestInfo> = vec![];

Expand Down Expand Up @@ -97,7 +97,7 @@ pub async fn reqs_info_from_wallet(
}

pub async fn transaction(Path(txhash): Path<String>, state: State<AppState>) -> StatusCode {
let txhash = normalize_hex(&txhash).expect("Transaction hash shall be an hexadecimal string");
let txhash = normalize_hex(&txhash).expect("Transaction hash shall be a hexadecimal string");
if let Ok(event) = state.store.event_by_tx(&txhash).await {
if event.is_some() {
return StatusCode::OK;
Expand All @@ -124,7 +124,7 @@ pub async fn contract_stats(
state: State<AppState>,
) -> Result<Json<Stats>, (StatusCode, String)> {
let contract_address = normalize_hex(&eth_contract_address)
.expect("Contract address shall be an hexadecimal string");
.expect("Contract address shall be a hexadecimal string");

let total_tokens_bridged_on_starknet = state
.store
Expand Down

0 comments on commit a470ddc

Please sign in to comment.