Skip to content

Commit e1411ad

Browse files
westbrook-aikclowes
authored andcommitted
Fixed typo in docs/web3.eth.rst (#2613)
* Fixed typo in docs/web3.eth.rst * Add newsfragment Co-authored-by: kclowes <[email protected]>
1 parent 65d97d7 commit e1411ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/web3.eth.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ The following methods are available on the ``web3.eth`` namespace.
10811081
>>> myContract.functions.getVar().call()
10821082
1
10831083
# The above call equivalent to the raw call:
1084-
>>> we3.eth.call({'value': 0, 'gas': 21736, 'maxFeePerGas': 2000000000, 'maxPriorityFeePerGas': 1000000000, 'to': '0xc305c901078781C232A2a521C2aF7980f8385ee9', 'data': '0x477a5c98'})
1084+
>>> web3.eth.call({'value': 0, 'gas': 21736, 'maxFeePerGas': 2000000000, 'maxPriorityFeePerGas': 1000000000, 'to': '0xc305c901078781C232A2a521C2aF7980f8385ee9', 'data': '0x477a5c98'})
10851085
HexBytes('0x0000000000000000000000000000000000000000000000000000000000000001')
10861086
10871087
In most cases it is better to make contract function call through the :py:class:`web3.contract.Contract` interface.
@@ -1455,4 +1455,4 @@ Contracts
14551455
.. py:method:: Eth.set_contract_factory(contractFactoryClass)
14561456
14571457
Modify the default contract factory from ``Contract`` to ``contractFactoryClass``.
1458-
Future calls to ``Eth.contract()`` will then default to ``contractFactoryClass``.
1458+
Future calls to ``Eth.contract()`` will then default to ``contractFactoryClass``.

newsfragments/2613.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix typo in eth.call docs

0 commit comments

Comments
 (0)