@@ -229,7 +229,7 @@ Each Contract Factory exposes the following methods.
229229 will accept ENS names.
230230
231231 If a ``gas `` value is not provided, then the ``gas `` value for the
232- deployment transaction will be created using the ``web3.eth.estimateGas () ``
232+ deployment transaction will be created using the ``web3.eth.estimate_gas () ``
233233 method.
234234
235235 Returns the transaction hash for the deploy transaction.
@@ -241,7 +241,7 @@ Each Contract Factory exposes the following methods.
241241 >> > txn_receipt[' contractAddress' ]
242242 ' 0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'
243243
244- .. py :classmethod :: Contract.constructor(* args, ** kwargs).estimateGas (transaction = None , block_identifier = None )
244+ .. py :classmethod :: Contract.constructor(* args, ** kwargs).estimate_gas (transaction = None ,block_identifier = None )
245245
246246 Estimate gas for constructing and deploying the contract.
247247
@@ -260,7 +260,7 @@ Each Contract Factory exposes the following methods.
260260
261261 .. code-block :: python
262262
263- >> > token_contract.constructor(web3.eth.coinbase, 12345 ).estimateGas ()
263+ >> > token_contract.constructor(web3.eth.coinbase, 12345 ).estimate_gas ()
264264 12563
265265
266266 .. py :classmethod :: Contract.constructor(* args, ** kwargs).buildTransaction(transaction = None )
@@ -343,7 +343,7 @@ Each Contract Factory exposes the following methods.
343343 will accept ENS names.
344344
345345 If a ``gas `` value is not provided, then the ``gas `` value for the
346- deployment transaction will be created using the ``web3.eth.estimateGas () ``
346+ deployment transaction will be created using the ``web3.eth.estimate_gas () ``
347347 method.
348348
349349 Returns the transaction hash for the deploy transaction.
@@ -765,7 +765,7 @@ Methods
765765 will accept ENS names.
766766
767767 If a ``gas `` value is not provided, then the ``gas `` value for the
768- method transaction will be created using the ``web3.eth.estimateGas () ``
768+ method transaction will be created using the ``web3.eth.estimate_gas () ``
769769 method.
770770
771771 Returns the transaction hash.
@@ -823,7 +823,7 @@ Methods
823823 # You can check the state after your pending transactions (if supported by your node):
824824 >> > token_contract.functions.myBalance().call(block_identifier = ' pending' )
825825
826- .. py :method :: ContractFunction.estimateGas (transaction, block_identifier = None )
826+ .. py :method :: ContractFunction.estimate_gas (transaction, block_identifier = None )
827827
828828 Call a contract function, executing the transaction locally using the
829829 ``eth_call `` API. This will not create a new public transaction.
@@ -832,7 +832,7 @@ Methods
832832
833833 .. code-block :: python
834834
835- myContract.functions.myMethod(* args, ** kwargs).estimateGas (transaction)
835+ myContract.functions.myMethod(* args, ** kwargs).estimate_gas (transaction)
836836
837837 This method behaves the same as the :py:meth: `ContractFunction.transact ` method,
838838 with transaction details being passed into the end portion of the
@@ -843,7 +843,7 @@ Methods
843843
844844 .. code-block :: python
845845
846- >> > my_contract.functions.multiply7(3 ).estimateGas ()
846+ >> > my_contract.functions.multiply7(3 ).estimate_gas ()
847847 42650
848848
849849 .. note ::
@@ -912,7 +912,7 @@ Fallback Function
912912 Call fallback function, executing the transaction locally using the
913913 ``eth_call `` API. This will not create a new public transaction.
914914
915- .. py :method :: Contract.fallback.estimateGas (transaction)
915+ .. py :method :: Contract.fallback.estimate_gas (transaction)
916916
917917 Call fallback function and return the gas estimation.
918918
0 commit comments