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

Use unstable contract env for development env #663

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

karlb
Copy link
Contributor

@karlb karlb commented Mar 26, 2021

Part of raiden-network/light-client#2521

Merge after raiden-network/raiden-services#951 and configuring *.services-dev.raiden.network/ to use the unstable env.

@karlb karlb marked this pull request as ready for review March 26, 2021 15:34
@auto-assign auto-assign bot requested a review from palango March 26, 2021 15:34

def __post_init__(self):
self.eth_rpc_endpoint_iterator = itertools.cycle(self.eth_rpc_endpoints)
self.development_environment = ContractDevEnvironment(self.development_environment)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this explicit cast necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This allows calling EnvironmentConfig(**json.load(...)) directly. Without it, you would have to explicitly convert the "unstable" string to EnvironmentConfig("unstable"), first. That would work too, but this way the JSON file and the EnvironmentConfig can be seen as the same thing more easily.

@@ -1,5 +1,6 @@
{
"environment_type": "development",
"development_environment": "unstable",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we define this in the other files as well, just for consistency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the default choice is the right one for all environments but this one, I prefer to leave it out. It could just cause confusion with the similarly named "environment_type".

@karlb karlb merged commit d693760 into raiden-network:master Apr 1, 2021
@karlb karlb deleted the use-unstable-env branch April 1, 2021 13:03
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