diff --git a/docs/web3.eth.rst b/docs/web3.eth.rst index bfc6267a6d..3bf6898433 100644 --- a/docs/web3.eth.rst +++ b/docs/web3.eth.rst @@ -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. @@ -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``. \ No newline at end of file + Future calls to ``Eth.contract()`` will then default to ``contractFactoryClass``. diff --git a/newsfragments/2613.doc.rst b/newsfragments/2613.doc.rst new file mode 100644 index 0000000000..0e6bc4955e --- /dev/null +++ b/newsfragments/2613.doc.rst @@ -0,0 +1 @@ +Fix typo in eth.call docs