You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enums were previously allowed in contract interfaces as a type requirement, but with the removal of type requirements they are no longer allowed to appear there. However, there is no current migration path for any old enums of this kind, as there are no enum interfaces to update them to, and the update validator does not allow the removal of a type declaration.
Suggested Solution
We should either allow enum declarations to be removed from contract interfaces (which should be safe because the enum will be declared in all contracts that conform to that interface) or come up with an alternative data migration to support this case.
The text was updated successfully, but these errors were encountered:
Issue to be solved
Enums were previously allowed in contract interfaces as a type requirement, but with the removal of type requirements they are no longer allowed to appear there. However, there is no current migration path for any old enums of this kind, as there are no enum interfaces to update them to, and the update validator does not allow the removal of a type declaration.
Suggested Solution
We should either allow enum declarations to be removed from contract interfaces (which should be safe because the enum will be declared in all contracts that conform to that interface) or come up with an alternative data migration to support this case.
The text was updated successfully, but these errors were encountered: