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

Change manager.providers from list to single manager.provider (V5 beta) #1200

Conversation

njgheorghita
Copy link
Contributor

@njgheorghita njgheorghita commented Jan 11, 2019

What was wrong?

Fixes #1024

How was it fixed?

  • Changed manager.providers -> manager.provider
  • And subsequently changed web3.providers -> web3.provider

Cute Animal Picture

image

@njgheorghita njgheorghita force-pushed the update-manager-providers-to-single-provider branch 10 times, most recently from d95861b to b880aa7 Compare January 11, 2019 15:46
web3/main.py Outdated
for provider in self.providers:
if provider.isConnected():
return True
if self.provider.isConnected():
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a nitpick, but can we just say return self.provider.isConnected()? Or is it a pythonic thing to have the explicit return True?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it's more or less "pythonic", but I do like your suggestion better, will update!

@njgheorghita njgheorghita force-pushed the update-manager-providers-to-single-provider branch from b880aa7 to d6d3509 Compare January 11, 2019 15:57
@njgheorghita njgheorghita changed the title [WIP] Change manager.providers from list to single manager.provider Change manager.providers from list to single manager.provider (V5 beta) Jan 11, 2019
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.

LGTM! :shipit:

@njgheorghita njgheorghita merged commit 34a5012 into ethereum:master Jan 11, 2019
@njgheorghita njgheorghita deleted the update-manager-providers-to-single-provider branch January 11, 2019 17:33
@carver carver mentioned this pull request Jan 25, 2019
22 tasks
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.

Switch to a single provider instead of a list
2 participants