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

Store the hash of the contract names as a constant #564

Open
RiccardoBiosas opened this issue May 9, 2022 · 1 comment
Open

Store the hash of the contract names as a constant #564

RiccardoBiosas opened this issue May 9, 2022 · 1 comment

Comments

@RiccardoBiosas
Copy link
Contributor

The contract getters use the hash of a contract name to fetch the corresponding address from the registry. Currently, they calculate the hash of the contract on the spot every time they are called, hence I suggest that we could save a bit of gas by storing the hash of the protocol contracts' names as a constant in a shared contract/embedded library.

@RiccardoBiosas
Copy link
Contributor Author

Note: could potentially converge with #563

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

No branches or pull requests

1 participant