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

Use call instead of delegate call in precompile calls #178

Merged
merged 4 commits into from
Feb 5, 2024

Conversation

ferranbt
Copy link
Collaborator

📝 Summary

This PR replaces the staticCall with a normal call when a Suave precompile is called. This does not affect the security model since precompiles cannot access state anyway (staticCall reverts if the contract tries to update a state variable).

But, it is helpful for the forge integration to make a mock ConfidentialStore in Solidity and use it as the target of the precompiles.

📚 References


  • I have seen and agree to CONTRIBUTING.md

@ferranbt ferranbt changed the title Feature/update suave call Use call instead of delegate call in precompile calls Jan 31, 2024
Copy link
Contributor

@lthibault lthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Send it 👍

@ferranbt ferranbt merged commit 2c090a1 into main Feb 5, 2024
4 checks passed
@ferranbt ferranbt deleted the feature/update-suave-call branch February 5, 2024 09:18
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

Successfully merging this pull request may close these issues.

2 participants