aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-19 04:53:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-19 06:04:57 +0800
commit0db76a01dadf17c45dc9a6749ba7213cd9b324a5 (patch)
tree96b57b981b5fb0ccf094ef1261ae33ab4a4de0d2 /libevmasm
parent37fa0c85ecfb459d5cdef5309ca2327e8a8d00c4 (diff)
downloaddexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar.gz
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar.bz2
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar.lz
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar.xz
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.tar.zst
dexon-solidity-0db76a01dadf17c45dc9a6749ba7213cd9b324a5.zip
CREATE2 opcode has been moved from 0xfb to 0xf5
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/Instruction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index dc116f88..e2e2b63e 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -192,8 +192,8 @@ enum class Instruction: uint8_t
CALLCODE, ///< message-call with another account's code only
RETURN, ///< halt execution returning output data
DELEGATECALL, ///< like CALLCODE but keeps caller's value and sender
+ CREATE2 = 0xf5, ///< create new account with associated code at address `sha3(0xff + sender + salt + init code) % 2**160`
STATICCALL = 0xfa, ///< like CALL but disallow state modifications
- CREATE2 = 0xfb, ///< create new account with associated code at address `sha3(sender + salt + sha3(init code)) % 2**160`
REVERT = 0xfd, ///< halt execution, revert state and return output data
INVALID = 0xfe, ///< invalid instruction for expressing runtime errors (e.g., division-by-zero)