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

chore : fix typos #1087

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 crates/consensus/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Account {
}

impl Account {
/// Compute hash as committed to in the MPT trie without memoizing.
/// Compute hash as committed to in the MPT trie without memorizing.
pub fn trie_hash_slow(&self) -> B256 {
keccak256(alloy_rlp::encode(self))
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc-types-admin/src/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub struct PeerEvent {
pub kind: PeerEventType,
/// The peer's enode ID.
pub peer: String,
/// An error ocurred on the peer.
/// An error occurred on the peer.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
/// The protocol of the peer.
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc-types-mev/src/mev_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ mod tests {
}

#[test]
fn can_dererialize_sim_response() {
fn can_deserialize_sim_response() {
let expected = r#"
{
"success": true,
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc-types-trace/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ mod tests {
}

#[test]
fn test_otterscan_interal_operation() {
fn test_otterscan_internal_operation() {
let s = r#"{
"type": 0,
"from": "0xea593b730d745fb5fe01b6d20e6603915252c6bf",
Expand Down
4 changes: 2 additions & 2 deletions crates/transport/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ impl RpcErrorExt for RpcError<TransportErrorKind> {
if let Self::ErrorResp(resp) = self {
let data = resp.try_data_as::<serde_json::Value>();
if let Some(Ok(data)) = data {
// if daily rate limit exceeded, infura returns the requested backoff in the error
// if daily rate limit exceeded, infra returns the requested backoff in the error
// response
let backoff_seconds = &data["rate"]["backoff_seconds"];
// infura rate limit error
// infra rate limit error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are not typos, this should stay infura

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Sorry.

if let Some(seconds) = backoff_seconds.as_u64() {
return Some(std::time::Duration::from_secs(seconds));
}
Expand Down