Skip to content

Commit

Permalink
Corrected Python and rst files (ethereum#3062)
Browse files Browse the repository at this point in the history
* Corrected Python and rst files
  • Loading branch information
criadoperez authored Jul 26, 2023
1 parent a2c3012 commit d9531df
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ The script can be run with: ``python ./eventscanner.py <your JSON-RPC API URL>``
if __name__ == "__main__":
# Simple demo that scans all the token transfers of RCC token (11k).
# The demo supports persistant state by using a JSON file.
# The demo supports persistent state by using a JSON file.
# You will need an Ethereum node for this.
# Running this script will consume around 20k JSON-RPC calls.
# With locally running Geth, the script takes 10 minutes.
Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ diagnose the problem, ``is_connected`` has an optional ``show_traceback`` argume
>>> w3.is_connected(show_traceback=True)
# this is an example, your error may differ
# <long stack trace ouput>
# <long stack trace output>
ProviderConnectionError: Problem connecting to provider with error: <class 'FileNotFoundError'>: cannot connect to IPC socket at path: None
If you're running a local node, such as Geth, double-check that you've indeed started
Expand Down
2 changes: 1 addition & 1 deletion docs/web3.contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ For example:
Extracts the pertinent logs from a transaction receipt.

If there are no errors, ``process_receipt`` returns a tuple of :ref:`Event Log Objects <event-log-object>`, emitted from the event (e.g. ``myEvent``),
with decoded ouput.
with decoded output.

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/web3.eth.account.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ By default, the balance of this address is zero.
Before you can send any transactions with your account,
you need to top up.

- For a local test environment, any environment is boostrapped with accounts that have ETH on them. Move
- For a local test environment, any environment is bootstrapped with accounts that have ETH on them. Move
ETH from default accounts to your newly created account.

- For public mainnet, you need to buy ETH in a cryptocurrency exchange
Expand Down
2 changes: 1 addition & 1 deletion ethpm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def from_uri(cls, uri: URI, w3: "Web3") -> "Package":
def get_contract_factory(self, name: ContractName) -> LinkableContract:
"""
Return the contract factory for a given contract type, generated from
the data vailable in ``Package.manifest``. Contract factories are
the data available in ``Package.manifest``. Contract factories are
accessible from the package class.
.. code:: python
Expand Down
2 changes: 1 addition & 1 deletion ethpm/tools/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def init_manifest(
package_name: str, version: str, manifest_version: Optional[str] = "ethpm/3"
) -> Dict[str, Any]:
"""
Returns an initial dict with the minimal requried fields for a valid manifest.
Returns an initial dict with the minimal required fields for a valid manifest.
Should only be used as the first fn to be piped into a `build()` pipeline.
"""
return {
Expand Down
2 changes: 1 addition & 1 deletion tests/core/contracts/test_contract_call_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ def test_call_tuple_contract_with_decode_tuples_set(
assert str(type(result)) == type_str
assert result.__repr__() == namedtuple_repr

# check that the namedtuple ouput is still a tuple
# check that the namedtuple output is still a tuple
assert result == plain_tuple_output

# check that fields are correct
Expand Down
2 changes: 1 addition & 1 deletion web3/pm.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class ERC1319Registry(ABC):
accessed directly, but rather through the methods on ``web3.pm``.
They are unlikely to change, but must be implemented in a `ERC1319Registry`
subclass in order to be compatible with the `PM` module. Any custom
methods (eg. not definied in ERC1319) in a subclass should *not* be
methods (eg. not defined in ERC1319) in a subclass should *not* be
prefixed with an underscore.
All of these methods must be implemented in any subclass in order to work
Expand Down
2 changes: 1 addition & 1 deletion web3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ABIEvent(TypedDict, total=False):


class ABIFunctionComponents(TypedDict, total=False):
# better typed as Sequence['ABIFunctionComponents'], but recursion isnt possible yet
# better typed as Sequence['ABIFunctionComponents'], but recursion not possible yet
# https://github.com/python/mypy/issues/731
components: Sequence[Any]
name: str
Expand Down

0 comments on commit d9531df

Please sign in to comment.