From 09319619782b36617142b64f0b87165a9c21c24e Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Thu, 29 Sep 2022 01:19:17 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=9D=20add=20my=20favorite=20opcodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- evm_and_opcodes/my_favorite_opcodes.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evm_and_opcodes/my_favorite_opcodes.md b/evm_and_opcodes/my_favorite_opcodes.md index 4c95a33..843236b 100644 --- a/evm_and_opcodes/my_favorite_opcodes.md +++ b/evm_and_opcodes/my_favorite_opcodes.md @@ -13,8 +13,7 @@ | 45 | GASLIIT | 2 | get gas limit | | 48 | BASEFEE | 2 | get base fee in wei | | 5A | GAS | 2 | remaining gas after instructions | -| F0 | CREATE2 | 32000 | create a new contract - the new account's code is set to the return data resulting from executing the inialisation code - the destination address is calculated as `initialisation_code = memory[offset:offset+size]` and -`address = keccak256(0xff + sender_address + salt + keccak256(initialisation_code))[12:]` | +| F0 | CREATE2 | 32000 | create a new contract - the new account's code is set to the return data resulting from executing the inialisation code - the destination address is calculated as `initialisation_code = memory[offset:offset+size]` and `address = keccak256(0xff + sender_address + salt + keccak256(initialisation_code))[12:]` | | F1 | CALL | 100 | create a new sub context and execute the code of the given account, then resumes the current one | | F2 | CALLCODE | 100 | create a new sub context and execute the code of the given account - the storage remains the same | | F4 | ✨DELEGATECALL✨ | 100 | create a new sub context and execute the code of the given account - the storage, the current sender, and the current value remain the same |