From bce40387d21b538cd3bf16a661b43d65294f6e4c Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 13 Jul 2026 21:09:25 -0700 Subject: [PATCH] Update remaining `.evm` extension usage --- create2-deployment.eas | 4 ++-- manual.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/create2-deployment.eas b/create2-deployment.eas index 3fc9d4c..4df2d25 100644 --- a/create2-deployment.eas +++ b/create2-deployment.eas @@ -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 ; [] diff --git a/manual.md b/manual.md index 7c74337..2bb0392 100644 --- 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 -- 2.47.3