EIP-6780, also known as the Self-Destructing Contracts proposal, aims to modify the functionality of the #SELFDESTRUCT opcode in Ethereum smart contracts. Currently, this opcode allows a contract to be deleted, with its remaining Ether sent to a specified address. However, EIP-6780 suggests a change where SELFDESTRUCT can only be called within the same transaction that the contract was created.
The primary objective of this proposal is to enhance the security of smart contracts by making it more challenging to execute malicious attacks involving SELFDESTRUCT. With the proposed change, an attacker would need to control both the contract being deleted and the address receiving the Ether, which adds an additional layer of protection.
Importantly, implementing EIP-6780 would not disrupt existing contracts. Contracts created before the adoption of this proposal would still be able to delete themselves and transfer their Ether to other addresses, as long as this action is carried out within the same transaction they were created.
It's important to note that EIP-6780 is currently in the "Draft" stage and has not been implemented in any Ethereum clients yet.
In simpler terms, EIP-6780 is a proposal that aims to make it more difficult for attackers to steal Ether from contracts by limiting when the SELFDESTRUCT opcode can be used. This change does not impact existing contracts but provides an added layer of security against potential future attacks.