-
Notifications
You must be signed in to change notification settings - Fork 22
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
Default Chain ID value in conditions #114
Comments
I would favor removing the default value, I think it only adds confusion to the |
I would be against adding some validation. That is done in |
We're already validating certain shared structures (such as |
But we should fail earlier, since conditions are associated to ciphertexts and it may be too late to change the condition later. |
Agree. It's more efficient and better UX to prevent the submission of invalid conditions. However I think there is a little room for flexibility with regard to chain ID since we may not have a homogeneous deployment where all nodes are serving all supported chains. |
I found a little bit confusing the default values taken in the Conditions doc:
There is no reference to what network will be taken by default. If you inspect the code, the Göerli testnet will be taken. So I'm wondering myself:
Should we have a default value for this? Or should be mandatory to specify the chain ID when creating the Conditions object? What should be the default value in the former case, Ethereum mainnet or Göerli?
_Originally posted by @manumonti [and discussion] in #179
The text was updated successfully, but these errors were encountered: