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

Make variable in the constructor immutable #56

Closed
PatrickAlphaC opened this issue Nov 3, 2021 · 0 comments · Fixed by #87
Closed

Make variable in the constructor immutable #56

PatrickAlphaC opened this issue Nov 3, 2021 · 0 comments · Fixed by #87

Comments

@PatrickAlphaC
Copy link
Contributor

immutable variables save on gas, and cannot be changed and we have a number of variables that we won't want to change, like the VRFCoordinator address.

We can also use immutable to set these variables in the constructor.

constant variables cannot be set in the constructor.

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