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

Ability to suicide / selfdestruct contracts #415

Open
Neotamandua opened this issue Dec 16, 2024 · 0 comments
Open

Ability to suicide / selfdestruct contracts #415

Neotamandua opened this issue Dec 16, 2024 · 0 comments

Comments

@Neotamandua
Copy link
Member

Summary

Introduce the ability to self-destruct a contract, making it possible to free up state storage for unused contracts. This feature is useful for cases where a contract has a defined expiration, as it would otherwise force obsolete contracts to impose an unnecessary storage burden on the blockchain.

A practical example is securities such as bonds, which have a fixed expiration (reaching maturity) and retirement date. Once expired, these contracts are no longer needed after a specific period. A smart contract developer could make use of a rusk_abi function to remove the storage of this contract from the chain.

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

No branches or pull requests

1 participant