Skip to content

Commit

Permalink
NDEV-3379. Fix executed steps when step limit happens (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientmage authored Oct 18, 2024
1 parent 37b0bf3 commit 18aac75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm_loader/program/src/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ impl<B: Database, T: EventListener> Machine<B, T> {
ExitStatus::Return(value)
} else {
loop {
step += 1;
if step > step_limit {
if step >= step_limit {
break ExitStatus::StepLimit;
}
step += 1;

let opcode = self.execution_code.get_or_default(self.pc);

Expand Down

0 comments on commit 18aac75

Please sign in to comment.