From 0c9e5f16e6da98fc504f65e7312c1832e94b0602 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:18:31 +0100 Subject: [PATCH] docs: fix typos (#2375) --- src/ape/api/accounts.py | 2 +- src/ape/api/providers.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ape/api/accounts.py b/src/ape/api/accounts.py index c8c357ffb6..c5e3ba1dc0 100644 --- a/src/ape/api/accounts.py +++ b/src/ape/api/accounts.py @@ -394,7 +394,7 @@ def prepare_transaction(self, txn: TransactionAPI) -> TransactionAPI: :class:`~ape.api.transactions.TransactionAPI` """ - # NOTE: Allow overriding nonce, assume user understand what this does + # NOTE: Allow overriding nonce, assume user understands what this does if txn.nonce is None: txn.nonce = self.nonce elif txn.nonce < self.nonce: diff --git a/src/ape/api/providers.py b/src/ape/api/providers.py index b0e1695f0b..559646f70e 100644 --- a/src/ape/api/providers.py +++ b/src/ape/api/providers.py @@ -60,7 +60,7 @@ class BlockAPI(BaseInterfaceModel): An abstract class representing a block and its attributes. """ - # NOTE: All fields in this class (and it's subclasses) should not be `Optional` + # NOTE: All fields in this class (and its subclasses) should not be `Optional` # except the edge cases noted below num_transactions: HexInt = 0 @@ -231,7 +231,7 @@ def connection_str(self) -> str: @abstractmethod def connect(self): """ - Connect a to a provider, such as start-up a process or create an HTTP connection. + Connect to a provider, such as start-up a process or create an HTTP connection. """ @abstractmethod @@ -352,7 +352,7 @@ def network_choice(self) -> str: def make_request(self, rpc: str, parameters: Optional[Iterable] = None) -> Any: """ Make a raw RPC request to the provider. - Advanced featues such as tracing may utilize this to by-pass unnecessary + Advanced features such as tracing may utilize this to by-pass unnecessary class-serializations. """ @@ -933,7 +933,7 @@ def auto_mine(self) -> bool: @abstractmethod def auto_mine(self) -> bool: """ - Enable or disbale automine. + Enable or disable automine. """ def _increment_call_func_coverage_hit_count(self, txn: TransactionAPI):