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

Consider the usage of staticcall for read only cross-contract calls #48

Open
sangier opened this issue Aug 19, 2024 · 0 comments
Open
Labels
good practices Good code practices needs discussion This issue needs more discussion before its implementation question Further information is requested

Comments

@sangier
Copy link
Contributor

sangier commented Aug 19, 2024

Staticcall can be useful for functions where only a return value is desired and state changes are unwanted. It add an extra layer of safety since it will revert if the contract called causes a state change and can save some gas.

Food for thoughts:

  1. More investigation is needed.
  2. The snippets of code where it can be applied should be identified.
@sangier sangier added question Further information is requested needs discussion This issue needs more discussion before its implementation labels Aug 19, 2024
@srdtrk srdtrk added the good practices Good code practices label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good practices Good code practices needs discussion This issue needs more discussion before its implementation question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

2 participants