From 436ae1333cbccc6cfcd4facc07ac5ba4c3769bb3 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 22 Mar 2017 16:40:44 +0300 Subject: [PATCH] trace mapping fix --- ethcore/src/types/trace_types/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethcore/src/types/trace_types/error.rs b/ethcore/src/types/trace_types/error.rs index c36d86728..184ab962f 100644 --- a/ethcore/src/types/trace_types/error.rs +++ b/ethcore/src/types/trace_types/error.rs @@ -50,7 +50,7 @@ impl<'a> From<&'a EvmError> for Error { EvmError::BadInstruction { .. } => Error::BadInstruction, EvmError::StackUnderflow { .. } => Error::StackUnderflow, EvmError::OutOfStack { .. } => Error::OutOfStack, - EvmError::BuiltIn { .. } => Error::OutOfStack, + EvmError::BuiltIn { .. } => Error::BuiltIn, EvmError::Internal(_) => Error::Internal, } } @@ -106,6 +106,7 @@ impl Decodable for Error { 3 => Ok(StackUnderflow), 4 => Ok(OutOfStack), 5 => Ok(Internal), + 6 => Ok(BuiltIn), _ => Err(DecoderError::Custom("Invalid error type")), } }