From: Ardis Lu Date: Wed, 30 Aug 2023 05:14:49 +0000 (-0700) Subject: Add note about EIP-6780 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=cc0db8f946ff5e912d5db7e17ed7a4fc4fd14644;p=minimal-eth-burner Add note about EIP-6780 --- diff --git a/README.md b/README.md index d8030d1..6051cb6 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,12 @@ await ethereum.request({ }); ``` +## EIP-6780 + +[EIP-6780](https://eips.ethereum.org/EIPS/eip-6780) updates the behavior of the `SELFDESTRUCT` opcode so that a smart contract calling `SELFDESTRUCT` will only delete itself when it's called in the same transaction that created it. + +Since the `deployer.evm` bytecode creates a new smart contract and then immediately calls it in the same transaction, its behavior is not changed by EIP-6780. + ## References - [Best way to burn ethers and other ethereum tokens?](https://ethereum.stackexchange.com/questions/16188/best-way-to-burn-ethers-and-other-ethereum-tokens/17617) - [Burner.sol](https://etherscan.io/address/0xb69fba56b2e67e7dda61c8aa057886a8d1468575)