@@ -237,7 +237,7 @@ Each Contract Factory exposes the following methods.
237237 .. code-block :: python
238238
239239 >> > deploy_txn = token_contract.constructor(web3.eth.coinbase, 12345 ).transact()
240- >> > txn_receipt = web3.eth.getTransactionReceipt (deploy_txn)
240+ >> > txn_receipt = web3.eth.get_transaction_receipt (deploy_txn)
241241 >> > txn_receipt[' contractAddress' ]
242242 ' 0x4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318'
243243
@@ -937,7 +937,7 @@ For example:
937937
938938 myContract = web3.eth.contract(address = contract_address, abi = contract_abi)
939939 tx_hash = myContract.functions.myFunction().transact()
940- receipt = web3.eth.getTransactionReceipt (tx_hash)
940+ receipt = web3.eth.get_transaction_receipt (tx_hash)
941941 myContract.events.myEvent().processReceipt(receipt)
942942
943943:py:class: `ContractEvent ` provides methods to interact with contract events. Positional and keyword arguments supplied to the contract event subclass will be used to find the contract event by signature.
@@ -954,7 +954,7 @@ For example:
954954 .. code-block :: python
955955
956956 >> > tx_hash = contract.functions.myFunction(12345 ).transact({' to' :contract_address})
957- >> > tx_receipt = w3.eth.getTransactionReceipt (tx_hash)
957+ >> > tx_receipt = w3.eth.get_transaction_receipt (tx_hash)
958958 >> > rich_logs = contract.events.myEvent().processReceipt(tx_receipt)
959959 >> > rich_logs[0 ][' args' ]
960960 {' myArg' : 12345 }
@@ -971,7 +971,7 @@ For example:
971971 .. code-block :: python
972972
973973 >> > tx_hash = contract.functions.myFunction(12345 ).transact({' to' :contract_address})
974- >> > tx_receipt = w3.eth.getTransactionReceipt (tx_hash)
974+ >> > tx_receipt = w3.eth.get_transaction_receipt (tx_hash)
975975 >> > processed_logs = contract.events.myEvent().processReceipt(tx_receipt)
976976 >> > processed_logs
977977 (
@@ -1020,7 +1020,7 @@ For example:
10201020 .. code-block :: python
10211021
10221022 >> > tx_hash = contract.functions.myFunction(12345 ).transact({' to' :contract_address})
1023- >> > tx_receipt = w3.eth.getTransactionReceipt (tx_hash)
1023+ >> > tx_receipt = w3.eth.get_transaction_receipt (tx_hash)
10241024 >> > log_to_process = tx_receipt[' logs' ][0 ]
10251025 >> > processed_log = contract.events.myEvent().processLog(log_to_process)
10261026 >> > processed_log
0 commit comments