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

Access constant state variables via class name #2333

Closed
ethernomad opened this issue Jun 1, 2017 · 2 comments
Closed

Access constant state variables via class name #2333

ethernomad opened this issue Jun 1, 2017 · 2 comments

Comments

@ethernomad
Copy link
Contributor

Currently if I want to access some constants in another class I have to use the is notation to "import" the contract containing the constants into the current contract. This pollutes the namespace of the current contract.

It would be great if I could just access constant state variables in another contract directly:

className.constantThatIWant

@chriseth
Copy link
Contributor

chriseth commented Jun 1, 2017

I know you really badly want this, but creating the same issue again and again won't help implementing it: #1290 ;-)

I have labeled the other one as up-for-grabs meaning that this should be a good issue for external contributors to implement.

@chriseth chriseth closed this as completed Jun 1, 2017
@ethernomad
Copy link
Contributor Author

Ah - I couldn't find the first one!

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