]> git.ardis.lu - minimal-eth-burner/commitdiff
Gas golf 3 gas by removing `DUP6`
authorArdis Lu <ardisglu@gmail.com>
Thu, 4 Jun 2026 06:05:47 +0000 (23:05 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 4 Jun 2026 06:05:47 +0000 (23:05 -0700)
README.md
deployer.eas

index 1b866e308798c1c6c0d1bf123a6f49d7a268eb77..39eee29084db1614a2c5745efdbcb7fe4086896d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ See example JavaScript below. Copy this code into the DevTools console in any we
 
 ```javascript
 const addr = (await ethereum.request({ method: 'eth_requestAccounts' }))[0]; // Current address
-const deployer = '0x696130ff5f526002601ef35f52600a601634f05f5f5f5f5f855af1'; // See deployer.eas
+const deployer = '0x696130ff5f526002601ef35f525f5f5f5f5f600a601634f05af1'; // See deployer.eas
 const burn = '100000000000000000'; // Amount of ETH to burn (in wei)
 
 // Irreversibly destroys all ETH sent
@@ -46,7 +46,7 @@ const { provider } = wallets[0]; // Replace 0 with the index of the wallet you w
 
 // The remainder is the same as above except using `provider` instead of `ethereum`
 const addr = (await provider.request({ method: 'eth_requestAccounts' }))[0]; // Current address
-const deployer = '0x696130ff5f526002601ef35f52600a601634f05f5f5f5f5f855af1'; // See deployer.eas
+const deployer = '0x696130ff5f526002601ef35f525f5f5f5f5f600a601634f05af1'; // See deployer.eas
 const burn = '100000000000000000'; // Amount of ETH to burn (in wei)
 
 // Irreversibly destroys all ETH sent
index f9b08c74a9aecff2a430b95086634acbe6d421a5..288b26d90903188834d1dcdf22655bba7fad4961 100644 (file)
@@ -7,19 +7,21 @@ PUSH10 0x6130ff5f526002601ef3 ; value
 PUSH0 ; offset
 MSTORE
 
-PUSH1 10 ; size
-PUSH1 22 ; offset
-CALLVALUE ; value
-CREATE
-
+;; Preload stack for CALL
 PUSH0 ; retSize
 PUSH0 ; retOffset
 PUSH0 ; argsSize
 PUSH0 ; argsOffset
 PUSH0 ; value
-DUP6 ; address
+
+  ;; address for CALL
+  PUSH1 10 ; size
+  PUSH1 22 ; offset
+  CALLVALUE ; value
+  CREATE
+
 GAS ; gas
 CALL
 
 ;;; This smart contract, assembled:
-;;; 0x696130ff5f526002601ef35f52600a601634f05f5f5f5f5f855af1
+;;; 0x696130ff5f526002601ef35f525f5f5f5f5f600a601634f05af1
This page took 0.039651 seconds and 4 git commands to generate.