Destroying A Contract
Last updated
Last updated
EVM
Deployed contracts cannot be destroyed unless it contains a function that calls selfdestruct
. However, since the Cancun hard fork, a contract can only be destroyed if selfdestruct
is called in the same transaction that deploys the contract.
Solana
Use this with caution as you can accidentally lock users out of their funds!