Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #258

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/blockchain/ethereum/src/Messaging.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ error WithdrawAlreadyError();
* In solidity, when we query a mapping, if the key does not exist, 0 is returned when
* the value is an uint256.
*
* For this reason, we use here a enum-like to ensure the correct state of the message.
* For this reason, we use here an enum-like to ensure the correct state of the message.
*/
contract StarklaneMessaging is Ownable {
// Messages sent directly from L2 indexer, that can be withdrawn with
Expand Down
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