-
Notifications
You must be signed in to change notification settings - Fork 428
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
Why trait defintions don't support generic #737
Comments
We are currently working to make ink! trait definitions really usable and afterwards this feature is going to be very important in my opinion. The ability to define ink! traits environment agnostic is not MVP but really needed. |
Hi @Robbepop Yes @yjhmelody is our guy who is working for Ask! Same to ink!, we need to design interface or something else for supporting designing specification. And for now, we think ink! trait_definitions can not cover many scenes, just like this issue #683 (in fact the scenes listed in this issue are also incomplete) and in your pr #665, It seems that it can't solve many cases either. Thus, is there existed a formal issue or discussions or channal to discuss the design for trait_definitions? |
@Robbepop We might want to have a separate issue for discussions and designing generics - I can't find anything in the issue tracker |
Let us first get non-generic traits right and then we can tackle making them generic or adding similar features that will help with library-like smart contracts that are urgently needed. |
This is going to be fixed in #665 where all ink! trait definitions are generic over an ink! contract environment. |
The issue has been fixed by #665 |
I find trait cannot be generic
But I want to define environment-independent traits, such as:
The text was updated successfully, but these errors were encountered: