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

Support referencing and re-exporting types from other libs for type sharing #1330

Open
leighmcculloch opened this issue Sep 9, 2024 · 1 comment

Comments

@leighmcculloch
Copy link
Member

What problem does your feature solve?

It's desirable to be able to export types from a contract that have been defined in another crate or contract.

See discussions about doing that here:

What would you like to see?

Ideally a way to use a type in a contract functions interface, where that type is defined in another crate or another contract.

What alternatives are there?

A manual way to redefine the same type, as a type-alias of sorts, and somehow adopt the structure of the type defined elsewhere and be compatible.

@leighmcculloch
Copy link
Member Author

This issue is similar and related to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@leighmcculloch and others