-
Notifications
You must be signed in to change notification settings - Fork 16
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
import structlog | ||
from eth_typing import URI | ||
from raiden_contracts.contract_manager import ContractDevEnvironment | ||
from typing_extensions import Literal | ||
|
||
from raiden.utils.typing import ( | ||
|
@@ -40,9 +41,11 @@ class EnvironmentConfig: | |
raiden_client: str | ||
wait_short: int | ||
wait_long: int | ||
development_environment: ContractDevEnvironment = ContractDevEnvironment.DEMO | ||
|
||
def __post_init__(self): | ||
self.eth_rpc_endpoint_iterator = itertools.cycle(self.eth_rpc_endpoints) | ||
self.development_environment = ContractDevEnvironment(self.development_environment) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this explicit cast necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This allows calling |
||
|
||
|
||
class PFSSettingsConfig: | ||
|
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.
Should we define this in the other files as well, just for consistency?
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.
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".