diff --git a/apps/indexer/src/handlers/requests.rs b/apps/indexer/src/handlers/requests.rs index 0eda43ba..2729561f 100644 --- a/apps/indexer/src/handlers/requests.rs +++ b/apps/indexer/src/handlers/requests.rs @@ -123,9 +123,12 @@ pub async fn contract_stats( Path(eth_contract_address): Path, state: State, ) -> Result, (StatusCode, String)> { + let contract_address = normalize_hex(ð_contract_address) + .expect("Contract address shall be an hexadecimal string"); + let total_tokens_bridged_on_starknet = state .store - .get_total_tokens_bridged_on_starknet(ð_contract_address) + .get_total_tokens_bridged_on_starknet(&contract_address) .await .unwrap_or(0);