Skip to content

Support trait method default implementations for #[contractimpl] macro #1451

@ozgunozerk

Description

@ozgunozerk

What problem does your feature solve?

Currently, say we have a trait, and we want to provide default implementations for some of its methods. We can do that, but when implementing the trait for our contract, the default implementations are not parsed by the #[contractimpl] macro (since, these methods are not mentioned in the impl block), making these methods unavailable to the generated client.

What would you like to see?

Methods with default implementations to be available for the client as well.

I know that this may be hard to achieve due to macro scopes, but it would really help us design better architecture for our libraries.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions