Skip to content

Commit

Permalink
make it clear that revert is not supposed to happen
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Oct 11, 2024
1 parent 516bff9 commit 71e56d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/vm_executor/src/oneshot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ where
}
}
ExecutionResult::Revert { output } => {
Err(ValidationError::FailedTx(Halt::ValidationFailed(output)))
unreachable!("Revert can only happen at the end of a transaction")
}
ExecutionResult::Success { .. } => Ok(()),
}
Expand Down

0 comments on commit 71e56d8

Please sign in to comment.