-
Notifications
You must be signed in to change notification settings - Fork 480
Closed
Labels
B-feature-requestA request for a new feature.A request for a new feature.
Description
Recently, the contract implementation style has changed so that the contract struct derives SpreadAllocate.
This causes a compilation error in contracts that make use of enum with more than one variant. This is because it is not possible to determine a default value, so SpreadAllocate is not defined for enum.
It would be nice if enum was allowed if the Default trait was implemented.
Here is my hacked version of making this work in ink: prosopo@bdc676d
Robbepop and aliXsed
Metadata
Metadata
Assignees
Labels
B-feature-requestA request for a new feature.A request for a new feature.