diff --git a/ethers-contract/ethers-contract-abigen/src/util.rs b/ethers-contract/ethers-contract-abigen/src/util.rs index 04e0cd3c6..348159b1e 100644 --- a/ethers-contract/ethers-contract-abigen/src/util.rs +++ b/ethers-contract/ethers-contract-abigen/src/util.rs @@ -201,7 +201,7 @@ pub(crate) fn derive_builtin_traits<'a>( extend_derives(stream, derive_default, derive_others); } -/// This has to be a seperate function since a sol struct is converted into a tuple, but for +/// This has to be a separate function since a sol struct is converted into a tuple, but for /// deriving purposes it shouldn't count as one, so we recurse back the struct fields. pub(crate) fn derive_builtin_traits_struct( structs: &InternalStructs, diff --git a/ethers-contract/ethers-contract-derive/src/abigen.rs b/ethers-contract/ethers-contract-derive/src/abigen.rs index 5e87e75f3..0c6da47b8 100644 --- a/ethers-contract/ethers-contract-derive/src/abigen.rs +++ b/ethers-contract/ethers-contract-derive/src/abigen.rs @@ -83,7 +83,7 @@ impl Parse for ContractArgs { // abi // TODO(nlordell): Due to limitation with the proc-macro Span API, we - // can't currently get a path the the file where we were called from; + // can't currently get a path the file where we were called from; // therefore, the path will always be rooted on the cargo manifest // directory. Eventually we can use the `Span::source_file` API to // have a better experience. @@ -148,7 +148,7 @@ impl Parse for Parameter { } } -/// An explicitely named contract method. +/// An explicitly named contract method. #[derive(Clone, Debug, PartialEq, Eq)] struct Method { signature: String, diff --git a/ethers-contract/ethers-contract-derive/src/event.rs b/ethers-contract/ethers-contract-derive/src/event.rs index d6765c489..b42a2d0d6 100644 --- a/ethers-contract/ethers-contract-derive/src/event.rs +++ b/ethers-contract/ethers-contract-derive/src/event.rs @@ -27,7 +27,7 @@ pub(crate) fn derive_eth_event_impl(input: DeriveInput) -> Result { // elementary types in their abi because the parser // doesn't know how to substitute the types. // This could be mitigated by getting the ABI of each non elementary type - // at runtime and computing the the signature as a Lazy static. + // at runtime and computing the signature as a Lazy static. match HumanReadableParser::parse_event(&abi) { Ok(event) => Ok(event), // Ignore parse_err since this is a valid [Source] diff --git a/ethers-contract/ethers-contract-derive/src/lib.rs b/ethers-contract/ethers-contract-derive/src/lib.rs index 47f11d267..f8c36a721 100644 --- a/ethers-contract/ethers-contract-derive/src/lib.rs +++ b/ethers-contract/ethers-contract-derive/src/lib.rs @@ -34,7 +34,7 @@ pub(crate) mod utils; /// Additionally, this macro accepts additional parameters to configure some aspects of the code /// generation: /// - `methods`: A list of mappings from method signatures to method names allowing methods names to -/// be explicitely set for contract methods. This also provides a workaround for generating code +/// be explicitly set for contract methods. This also provides a workaround for generating code /// for contracts with multiple methods with the same name. /// - `derives`: A list of additional derive macros that are added to all the generated structs and /// enums, after the default ones which are ([when applicable][tuple_derive_ref]): diff --git a/ethers-core/src/types/trace/geth.rs b/ethers-core/src/types/trace/geth.rs index 1397f5f8d..b2a4ec7c3 100644 --- a/ethers-core/src/types/trace/geth.rs +++ b/ethers-core/src/types/trace/geth.rs @@ -286,7 +286,7 @@ pub mod spoof { } } - /// Wraps a map from storage slot to the overriden value. + /// Wraps a map from storage slot to the overridden value. /// /// Storage overrides can either replace the existing state of an account or they can be treated /// as a diff on the existing state. diff --git a/ethers-providers/README.md b/ethers-providers/README.md index ec25508b8..3ce00db66 100644 --- a/ethers-providers/README.md +++ b/ethers-providers/README.md @@ -37,7 +37,7 @@ ethers-providers = { version = "2.0", features = ["ipc"] } The provider may also be used to resolve [Ethereum Name Service](https://ens.domains) (ENS) names to addresses (and vice versa). The default ENS address is [`0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e`][ens] -and can be overriden with the [`ens`](./struct.Provider.html#method.ens) method on the provider. +and can be overridden with the [`ens`](./struct.Provider.html#method.ens) method on the provider. [ens]: https://etherscan.io/address/0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e diff --git a/ethers-providers/src/middleware.rs b/ethers-providers/src/middleware.rs index a6afb6b81..efc2ff38c 100644 --- a/ethers-providers/src/middleware.rs +++ b/ethers-providers/src/middleware.rs @@ -263,7 +263,7 @@ pub trait Middleware: Sync + Send + Debug { self.inner().resolve_avatar(ens_name).await.map_err(MiddlewareError::from_err) } - /// Returns the URL (not necesserily HTTP) of the image behind a token. + /// Returns the URL (not necessarily HTTP) of the image behind a token. /// /// # Example /// ```no_run diff --git a/ethers-providers/src/rpc/provider.rs b/ethers-providers/src/rpc/provider.rs index 181e1047d..cb16052cb 100644 --- a/ethers-providers/src/rpc/provider.rs +++ b/ethers-providers/src/rpc/provider.rs @@ -1884,7 +1884,7 @@ mod tests { assert_eq!(tx.gas(), Some(&gas)); assert_eq!(tx.access_list(), Some(&Default::default())); - // --- propogates estimate_gas() error + // --- propagates estimate_gas() error let mut tx = Eip1559TransactionRequest::new() .max_fee_per_gas(max_fee) .max_priority_fee_per_gas(prio_fee) diff --git a/ethers-providers/src/rpc/transports/ipc.rs b/ethers-providers/src/rpc/transports/ipc.rs index 2ead47299..2401ec044 100644 --- a/ethers-providers/src/rpc/transports/ipc.rs +++ b/ethers-providers/src/rpc/transports/ipc.rs @@ -322,7 +322,7 @@ async fn run_ipc_server(mut stream: Stream, request_rx: mpsc::UnboundedReceiver< }; // split the stream and run two independent concurrently (local), thereby - // allowing reads and writes to occurr concurrently + // allowing reads and writes to occur concurrently let (reader, writer) = stream.split(); let read = shared.handle_ipc_reads(reader); let write = shared.handle_ipc_writes(writer, request_rx); diff --git a/ethers-providers/src/toolbox/call_raw.rs b/ethers-providers/src/toolbox/call_raw.rs index 97d3e6601..9bce12794 100644 --- a/ethers-providers/src/toolbox/call_raw.rs +++ b/ethers-providers/src/toolbox/call_raw.rs @@ -129,7 +129,7 @@ impl<'a, P> Caller<'a, P> { } } impl<'a, P: JsonRpcClient> Caller<'a, P> { - /// Executes an `eth_call` rpc request with the overriden parameters. Returns a future that + /// Executes an `eth_call` rpc request with the overridden parameters. Returns a future that /// resolves to the result of the request. fn execute(&self) -> impl Future> + 'a { self.provider.request("eth_call", utils::serialize(&self.input))