-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 2040 #2209
Issue 2040 #2209
Conversation
ad945df
to
36e5d1a
Compare
0245908
to
6832b83
Compare
@@ -617,7 +617,8 @@ The following methods are available on the ``web3.eth`` namespace. | |||
``eth_getTransactionByBlockNumberAndIndex`` if ``block_identifier`` is an | |||
integer or one of the predefined block parameters ``'latest', 'earliest', | |||
'pending'``, otherwise delegates to | |||
``eth_getTransactionByBlockHashAndIndex``. If the transaction has not yet been mined throws :class:`web3.exceptions.TransactionNotFound`. | |||
``eth_getTransactionByBlockHashAndIndex``. | |||
If a transaction is not found at specified arguments, throws :class:`web3.exceptions.TransactionNotFound`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is important because this method does return a transaction for pending blocks; i.e. not-yet-mined transactions.
e.g. get_transaction_by_block('pending', txn_index)
@dshehbaj, @shreyassai123, @DavidRomanovizc thanks for all the work on this! I saw there were 3 open PRs with very similar changes. I tried to piggy back off of them here and give credit to all 3 😃 My changes were rebasing with the current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks @fselmo, @dshehbaj, @shreyassai123, and @DavidRomanovizc! LGTM! 🚢
credit: @dshehbaj, @shreyassai123, @DavidRomanovizc commit summary: - Defined RPC methods in rpc_abi.py - Defined eth.get_raw_transaction_by_block method - Method formatting - Suggested changes - Linting - Fixed Errors
- Reconcile differences across all 3 getRawTransactionByBlock PRs - Add tests - Minor corrections for eth_getRawTransactionByBlock - Add docs
with pleasure |
What was wrong?
Related to:
How was it fixed?
Todo:
Cute Animal Picture