Skip to content

Commit 0b310f8

Browse files
Merge pull request #1541 from eqlabs/sm/run-typos
chore: run `typos -w`
2 parents 83d79f3 + 129d87d commit 0b310f8

File tree

39 files changed

+102
-92
lines changed

39 files changed

+102
-92
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ jobs:
9494
- run: |
9595
cargo sort --check --workspace
9696
97+
typos:
98+
runs-on: ubuntu-latest
99+
steps:
100+
- uses: actions/checkout@v3
101+
- uses: crate-ci/typos@v1.16.23
102+
with:
103+
files: .
104+
97105
load_test:
98106
runs-on: ubuntu-latest
99107
steps:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
400400

401401
### Fixed
402402

403-
- RPC accepts hex inputs for Felt without '0x' prefix. This led to confusion especially when passing in a decimal string which would get silently interpretted as hex.
403+
- RPC accepts hex inputs for Felt without '0x' prefix. This led to confusion especially when passing in a decimal string which would get silently interpreted as hex.
404404
- using a Nethermind Ethereum endpoint occasionally causes errors such as `<block-number> could not be found` to be logged.
405405
- sync can miss new block events by getting stuck waiting for pending data.
406406

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ These __will not work__:
333333

334334
### Build info metrics
335335

336-
- `pathfinder_build_info` reports curent version as a `version` property
336+
- `pathfinder_build_info` reports current version as a `version` property
337337

338338
## Build from source
339339

_typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[files]
2+
extend-exclude = ["crates/gateway-test-fixtures/fixtures/contracts/*.json"]

crates/common/src/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl BlockHeader {
3939
.with_parent_hash(self.hash)
4040
}
4141

42-
/// Creates a [StateUpdate] with the block hash and state commitment fields intialized
42+
/// Creates a [StateUpdate] with the block hash and state commitment fields initialized
4343
/// to match this header.
4444
pub fn init_state_update(&self) -> StateUpdate {
4545
StateUpdate::default()

crates/common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl TransactionVersion {
167167
self.without_query_version() == 0
168168
}
169169

170-
/// Returns the transaction versin without QUERY_VERSION_BASE.
170+
/// Returns the transaction version without QUERY_VERSION_BASE.
171171
///
172172
/// QUERY_VERSION_BASE (2**128) is a large constant that gets
173173
/// added to the real version to make sure transactions constructed for

crates/common/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub(super) mod i64_backed_u64 {
9090

9191
/// Generates felt newtype-wrappers and the `macro_prelude` module.
9292
///
93-
/// Note that this is a sinlge-use macro as it generates a module.
93+
/// Note that this is a single-use macro as it generates a module.
9494
///
9595
/// Usage:
9696
/// `felt_newtypes!([x1, x2, ..]; [y1, y2, ..])`

crates/gateway-types/src/class_hash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn extract_abi_code_hash(
8181
Ok((abi, code, hash))
8282
}
8383
json::ContractDefinition::Cairo(contract_definition) => {
84-
// just in case we'd accidentially modify these in the compute_class_hash0
84+
// just in case we'd accidentally modify these in the compute_class_hash0
8585
let abi = serde_json::to_vec(&contract_definition.abi)
8686
.context("Serialize contract_definition.abi")?;
8787
let code = serde_json::to_vec(&contract_definition.program.data)
@@ -721,7 +721,7 @@ mod json {
721721

722722
#[test]
723723
fn serde_json_has_raw_value() {
724-
// raw value is needed for others but here for completness; this shouldn't compile if
724+
// raw value is needed for others but here for completeness; this shouldn't compile if
725725
// you the feature wasn't enabled.
726726

727727
#[derive(serde::Deserialize, serde::Serialize)]

crates/gateway-types/src/reply.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ mod tests {
16841684

16851685
#[test]
16861686
fn eth_contract_addresses_ignores_extra_fields() {
1687-
// Some gateway mocks include extra addesses, check that we can still parse these.
1687+
// Some gateway mocks include extra addresses, check that we can still parse these.
16881688
let json = serde_json::json!({
16891689
"Starknet": "0x12345abcd",
16901690
"GpsStatementVerifier": "0xaabdde",

crates/gateway-types/src/request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub mod add_transaction {
253253
#[serde_as]
254254
#[derive(Debug, serde::Deserialize, serde::Serialize)]
255255
pub struct InvokeFunction {
256-
// Transacion properties
256+
// Transaction properties
257257
#[serde_as(as = "TransactionVersionAsHexStr")]
258258
pub version: TransactionVersion,
259259

@@ -277,7 +277,7 @@ pub mod add_transaction {
277277
#[serde_as]
278278
#[derive(Debug, serde::Deserialize, serde::Serialize)]
279279
pub struct Declare {
280-
// Transacion properties
280+
// Transaction properties
281281
#[serde_as(as = "TransactionVersionAsHexStr")]
282282
pub version: TransactionVersion,
283283

0 commit comments

Comments
 (0)