Skip to content

Commit

Permalink
Fixed typo in docs/web3.eth.rst (ethereum#2613)
Browse files Browse the repository at this point in the history
* Fixed typo in docs/web3.eth.rst

* Add newsfragment

Co-authored-by: kclowes <[email protected]>
  • Loading branch information
2 people authored and pacrob committed Sep 8, 2022
1 parent 6bb9f55 commit ce2793a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/web3.eth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ The following methods are available on the ``web3.eth`` namespace.
>>> myContract.functions.getVar().call()
1
# The above call equivalent to the raw call:
>>> we3.eth.call({'value': 0, 'gas': 21736, 'maxFeePerGas': 2000000000, 'maxPriorityFeePerGas': 1000000000, 'to': '0xc305c901078781C232A2a521C2aF7980f8385ee9', 'data': '0x477a5c98'})
>>> web3.eth.call({'value': 0, 'gas': 21736, 'maxFeePerGas': 2000000000, 'maxPriorityFeePerGas': 1000000000, 'to': '0xc305c901078781C232A2a521C2aF7980f8385ee9', 'data': '0x477a5c98'})
HexBytes('0x0000000000000000000000000000000000000000000000000000000000000001')
In most cases it is better to make contract function call through the :py:class:`web3.contract.Contract` interface.
Expand Down Expand Up @@ -1455,4 +1455,4 @@ Contracts
.. py:method:: Eth.set_contract_factory(contractFactoryClass)
Modify the default contract factory from ``Contract`` to ``contractFactoryClass``.
Future calls to ``Eth.contract()`` will then default to ``contractFactoryClass``.
Future calls to ``Eth.contract()`` will then default to ``contractFactoryClass``.
1 change: 1 addition & 0 deletions newsfragments/2613.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typo in eth.call docs

0 comments on commit ce2793a

Please sign in to comment.