Skip to content

Commit

Permalink
Update post_execution.rs (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
DoTheBestToGetTheBest authored Mar 10, 2024
1 parent 5a2aa5f commit 5c0cbda
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 5c0cbda

Please sign in to comment.