Skip to content
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

Document update for v5 #1527

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Document update for v5 #1527

merged 1 commit into from
Dec 2, 2019

Conversation

ashish10677
Copy link
Contributor

@ashish10677 ashish10677 commented Nov 25, 2019

What was wrong?

The docs weren't updated when we started returning a TransactionNotFound or BlockNotFound error instead of None for RPC methods that don't find a transaction.

Related to Issue #1522

How was it fixed?

Updated all the functions mentioned in https://web3py.readthedocs.io/en/stable/v5_migration.html#json-rpc-updates

Todo:

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@kclowes
Copy link
Collaborator

kclowes commented Nov 25, 2019

Thanks @ashish10677! This looks good! I noticed that the migration docs are wrong. getTransactionCount doesn't return an error, but getBlockTransactionCount will raise a BlockNotfound if it doesn't find that block. Do you mind updating?

@ashish10677
Copy link
Contributor Author

@kclowes sorry for the mistake. I've updated the docs. Do I need to create a new merge request?

@ashish10677
Copy link
Contributor Author

@kclowes 1 lint test is failing. Can you tell me how to fix it?

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ashish10677! This looks good to me!

…d error instead of None for RPC methods that don't find a transaction.

Signed-off-by: ashish10677 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants