Skip to content

Commit

Permalink
Update post_execution.rs (bluealloy#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheBestToGetTheBest authored and fubuloubu committed Apr 11, 2024
1 parent edc1970 commit f697f8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/revm/src/handler/mainnet/post_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,13 @@ pub fn output<EXT, DB: Database>(
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
)
}
};

Expand Down

0 comments on commit f697f8a

Please sign in to comment.