aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Instruction.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-07 04:21:27 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-11 06:40:12 +0800
commit148f9233516ff5ad94d81aba9bc9c0440d3afc7b (patch)
treeea5c67aba40a944e9236be845cf3bd29e55b669c /libevmasm/Instruction.h
parent14ded4963d2b42443c6ddce8ad7550393ab58983 (diff)
downloaddexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.tar.gz
dexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.tar.zst
dexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.zip
Add REVERT to libevmasm
Diffstat (limited to 'libevmasm/Instruction.h')
-rw-r--r--libevmasm/Instruction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index 7f56ad3a..d79ec969 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -177,6 +177,7 @@ enum class Instruction: uint8_t
RETURN, ///< halt execution returning output data
DELEGATECALL, ///< like CALLCODE but keeps caller's value and sender
+ REVERT = 0xfd, ///< halt execution, revert state and return output data
INVALID = 0xfe, ///< invalid instruction for expressing runtime errors (e.g., division-by-zero)
SELFDESTRUCT = 0xff ///< halt execution and register account for later deletion
};