]> git.ardis.lu - minimal-create2/commitdiff
Update remaining `.evm` extension usage
authorArdis Lu <ardisglu@gmail.com>
Tue, 14 Jul 2026 04:09:25 +0000 (21:09 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 14 Jul 2026 04:09:25 +0000 (21:09 -0700)
create2-deployment.eas
manual.md

index 3fc9d4c43dc6bba27c380e5d31a26120f46a3ae6..4df2d25706ae78a3217bc07c29eefb70d3a49b4b 100644 (file)
@@ -1,9 +1,9 @@
-;; Store create2.evm compiled bytecode into memory
+;; Store create2.eas compiled bytecode into memory
 PUSH 0x365f5f375f516020360360205ff5 ; [value]
 PUSH0                               ; [offset, value]
 MSTORE                              ; []
 
-;; Return create2.evm compiled bytecode
+;; Return create2.eas compiled bytecode
 PUSH 14 ; [size]
 PUSH 18 ; [offset, size]
 RETURN  ; []
index 7c743373953ef1eadd41cf5f0d464c22f7571ea1..2bb0392183625d74eac375b49ca20af3c09673de 100644 (file)
--- a/manual.md
+++ b/manual.md
@@ -13,12 +13,12 @@ await ethereum.request({
   method: 'eth_sendTransaction',
   params: [{
     from: (await ethereum.request({ method: 'eth_requestAccounts' }))[0], // Your currently active MetaMask address
-    data: '0x6d365f5f375f516020360360205ff55f52600e6012f3' // create2-deployment.evm, compiled
+    data: '0x6d365f5f375f516020360360205ff55f52600e6012f3' // create2-deployment.eas, compiled
   }]
 });
 ```
 
-`create2-deployment.evm` contains bytecode that deploys `create2.evm`. `create2.evm` is a minimal smart contract written in EVM assembly which expects a 32-byte salt and arbitrary bytecode in the calldata passed to it and deploys the bytecode using the `CREATE2` opcode.
+`create2-deployment.eas` contains bytecode that deploys `create2.eas`. `create2.eas` is a minimal smart contract written in EVM assembly which expects a 32-byte salt and arbitrary bytecode in the calldata passed to it and deploys the bytecode using the `CREATE2` opcode.
 
 **Important**: If you want the same `CREATE2` contract address *across chains*, you should use a fresh EOA with no prior transactions to create this deployment factory. Otherwise, the deployment factories will have different addresses and will output different `CREATE2` addresses.
 
@@ -36,7 +36,7 @@ const factory = '0x8137a81A74E2a9d510898B2e3E307e7C33eBad8A';
 const salt = '0x0000000000000000000000000000000000000000000000000000000000000123';
 
 // Must be the entire creation bytecode, including constructor arguments
-const bytecode = '0x385f818153f3'; // minimal-contract-deployment.evm, compiled
+const bytecode = '0x385f818153f3'; // minimal-contract-deployment.eas, compiled
 
 ethers.getCreate2Address(factory, salt, ethers.keccak256(bytecode));
 // 0xD7ada5e4De61a3c14994046d349d90F7ae693433
@@ -51,7 +51,7 @@ const ethers = await import('https://cdn.jsdelivr.net/npm/ethers@6.7.1/+esm');
 const factory = '0x8137a81A74E2a9d510898B2e3E307e7C33eBad8A';
 
 // Must be the entire creation bytecode for the smart contract you want to deploy, including constructor arguments
-const bytecode = '0x385f818153f3'; // minimal-contract-deployment.evm, compiled
+const bytecode = '0x385f818153f3'; // minimal-contract-deployment.eas, compiled
 const hashedBytecode = ethers.keccak256(bytecode); // Hash it once and save for efficiency
 
 // Simple regex to match the desired CREATE2 address
This page took 0.041495 seconds and 4 git commands to generate.