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

feat: add self keyword to import a module #7279

Open
enitrat opened this issue Feb 13, 2025 · 1 comment
Open

feat: add self keyword to import a module #7279

enitrat opened this issue Feb 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@enitrat
Copy link
Contributor

enitrat commented Feb 13, 2025

Feature Request

Describe the Feature Request

Currently when testing my contracts, to test the assertions of events, I might need to import the contract and it's internal content, like:

use registry::Registry
use registry::Registry::{
    DataRegistered, DataUpdated
};

Registry here is a contract module. I would like to be able to write:

use registry::Registry::{
    self, DataRegistered, DataUpdated
};
@enitrat enitrat added the enhancement New feature or request label Feb 13, 2025
@g4titanx
Copy link

hey assign this to me

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