From fc10fc30730b94bbefb4fe9560ca335daa518562 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 20 Nov 2019 19:32:52 +0000 Subject: [PATCH] Move InvalidDeposit/InvalidOpcode from Instructions.h to Exceptions.h --- libevmasm/Exceptions.h | 3 +++ libevmasm/Instruction.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libevmasm/Exceptions.h b/libevmasm/Exceptions.h index 06b0ac788..d6557d399 100644 --- a/libevmasm/Exceptions.h +++ b/libevmasm/Exceptions.h @@ -33,5 +33,8 @@ struct OptimizerException: virtual AssemblyException {}; struct StackTooDeepException: virtual OptimizerException {}; struct ItemNotAvailableException: virtual OptimizerException {}; +DEV_SIMPLE_EXCEPTION(InvalidDeposit); +DEV_SIMPLE_EXCEPTION(InvalidOpcode); + } } diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h index f2f5879d9..c93fbf158 100644 --- a/libevmasm/Instruction.h +++ b/libevmasm/Instruction.h @@ -31,9 +31,6 @@ namespace dev namespace eth { -DEV_SIMPLE_EXCEPTION(InvalidDeposit); -DEV_SIMPLE_EXCEPTION(InvalidOpcode); - /// Virtual machine bytecode instruction. enum class Instruction: uint8_t {