From 1b1dc5c59f0841ca0af925c9049ed35b6b73954c Mon Sep 17 00:00:00 2001 From: tesseract <146037313+DoTheBestToGetTheBest@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:48:49 -0800 Subject: [PATCH] Update post_execution.rs --- crates/revm/src/handler/mainnet/post_execution.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/revm/src/handler/mainnet/post_execution.rs b/crates/revm/src/handler/mainnet/post_execution.rs index 0955cec4c4..6d70b4fedf 100644 --- a/crates/revm/src/handler/mainnet/post_execution.rs +++ b/crates/revm/src/handler/mainnet/post_execution.rs @@ -103,10 +103,13 @@ pub fn output( gas_used: final_gas_used, }, // Only two internal return flags. - SuccessOrHalt::FatalExternalError + flag @ (SuccessOrHalt::FatalExternalError | SuccessOrHalt::InternalContinue - | SuccessOrHalt::InternalCallOrCreate => { - panic!("Internal return flags should remain internal {instruction_result:?}") + | SuccessOrHalt::InternalCallOrCreate) => { + panic!( + "Encountered unexpected internal return flag: {:?} with instruction result: {:?}", + flag, instruction_result + ) } };