Skip to content
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

Disambiguate functions in Impl traits #127

Open
coreggon11 opened this issue Aug 7, 2023 · 0 comments
Open

Disambiguate functions in Impl traits #127

coreggon11 opened this issue Aug 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@coreggon11
Copy link
Contributor

Standards in OB come with Trait, defining the interface of the standard, and TraitImpl defining the default implementation of the standard. It is done this way so users can override the standards how they like. However, if Trait contains fn foo(), also TraitImpl contains fn foo(). Then if a user wants to call contract.foo(), they have to specify from which trait they want to call the function. It would be more user-friendly to rename the functions in the default implementation to fn foo_impl() etc.

@coreggon11 coreggon11 changed the title Distinguish functions in Impl traits Disambiguate functions in Impl traits Aug 7, 2023
@Artemka374 Artemka374 added the enhancement New feature or request label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants