From cc0db8f946ff5e912d5db7e17ed7a4fc4fd14644 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 29 Aug 2023 22:14:49 -0700 Subject: [PATCH] Add note about EIP-6780 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.47.3