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 delegate dependency locking lock contracts and not code hashes #6724

Closed
athei opened this issue Dec 1, 2024 · 1 comment
Closed

Make delegate dependency locking lock contracts and not code hashes #6724

athei opened this issue Dec 1, 2024 · 1 comment

Comments

@athei
Copy link
Member

athei commented Dec 1, 2024

On EVM delegate calling another contract ins infallible because code cannot be deleted. In our system contracts and code hashes can be deleted. This is why we allow for code hashes to be locked in place for a deposit.

With the introduction of immutable variables delegate call depends on a contract and not a code hash anymore. This is because they need to read their immutable data for execution.

We need to update the locking system to allow for locking of contracts and not code hashes.

Pre-compile support is needed to expose this additional functionality.

@athei athei converted this from a draft issue Dec 1, 2024
@athei athei changed the title Decide what to do with delegate dependency locking Make delegate dependency locking lock contracts and not code hashes Dec 1, 2024
@athei
Copy link
Member Author

athei commented Jan 10, 2025

Replaced by #7092

@athei athei closed this as completed Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Polkadot APIs
Development

No branches or pull requests

1 participant