@@ -893,7 +893,7 @@ The following methods are available on the ``web3.eth`` namespace.
893
893
and ``maxPriorityFeePerGas ``. These will likely be default values and may result in an
894
894
unsuccessful replacement of the pending transaction.
895
895
896
- This method returns the transaction hash of the replacement transaction.
896
+ This method returns the transaction hash of the replacement transaction as a HexBytes object .
897
897
898
898
.. code-block :: python
899
899
@@ -902,12 +902,13 @@ The following methods are available on the ``web3.eth`` namespace.
902
902
' from' : web3.eth.coinbase,
903
903
' value' : 1000
904
904
})
905
- ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331'
905
+ HexBytes( ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331' )
906
906
>> > web3.eth.replace_transaction(' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331' , {
907
907
' to' : ' 0xd3CdA913deB6f67967B99D67aCDFa1712C293601' ,
908
908
' from' : web3.eth.coinbase,
909
909
' value' : 2000
910
910
})
911
+ HexBytes(' 0x4177e670ec6431606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1528989' )
911
912
912
913
.. py :method :: Eth.replaceTransaction(transaction_hash, new_transaction)
913
914
@@ -927,7 +928,7 @@ The following methods are available on the ``web3.eth`` namespace.
927
928
928
929
The same validation and defaulting rules of :meth: `~web3.eth.Eth.replace_transaction ` apply.
929
930
930
- This method returns the transaction hash of the newly modified transaction.
931
+ This method returns the transaction hash of the newly modified transaction as a HexBytes object .
931
932
932
933
.. code-block :: python
933
934
@@ -936,9 +937,9 @@ The following methods are available on the ``web3.eth`` namespace.
936
937
' from' : web3.eth.coinbase,
937
938
' value' : 1000
938
939
})
939
- ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331'
940
- >> > web3.eth.modify_transaction
941
- ( ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331 ' , value= 2000 )
940
+ HexBytes( ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331' )
941
+ >> > web3.eth.modify_transaction(( ' 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331 ' , value= 2000 )
942
+ HexBytes( ' 0xec6434e6701771606e55d6b4ca35a1a6b75ee3d73315145a921026d15299d05 ' )
942
943
943
944
.. py:method:: Eth.modifyTransaction(transaction_hash, ** transaction_params)
944
945
0 commit comments