Closed k128 closed 3 years ago
Same issue with get_transaction_receipt. Not sure if this is intentional or if I'm missing something.
Hey @k128 . These are methods and thus need to have parentheses at the end. But also, you need to pass the transaction hash and the values to be modified. Please consult the docs for examples on each method:
Hey @k128 . These are methods and thus need to have parentheses at the end. But also, you need to pass the transaction hash and the values to be modified. Please consult the docs for examples on each method:
fselmo, in python, object.method returns a method object if it exists. For example:
>>> w3.eth.modifyTransaction
<bound method Eth.modifyTransaction of <web3.eth.Eth object at 0x000001E8D78483A0>>
This code shows that w3.eth has a method called modifyTransaction. My original example demonstrates that the object w3.eth has no method called modify_transaction, which is the issue.
@k128 Ah yep! You are absolutely right that should not be the expected result here. Looks like these changes came in at 5.18.0 and you are at 5.17.0
though based on your pip freeze. You may have caught non-ideal messaging between versions. Any chance you can update web3 to the latest?
Ok, updating to the lastest version seems to have fixed the issue. Thanks!
pip freeze
outputWhat was wrong?
Despite the documentation saying that modifyTransaction is deprecated in favor of modify_transaction, modify_transaction is unavailable.