Skip to content

Commit

Permalink
fix: call clear (bluealloy#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr authored Feb 18, 2025
1 parent 0ce8a34 commit c525b5e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/handler/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ pub trait Handler {
self.reimburse_caller(evm, &mut exec_result)?;
// Reward beneficiary
self.reward_beneficiary(evm, &mut exec_result)?;
// Returns output of transaction.
self.output(evm, exec_result)
// Prepare output of transaction.
let output = self.output(evm, exec_result)?;
// Clear any internal state.
self.clear(evm);
// Return output
Ok(output)
}

/* VALIDATION */
Expand Down

0 comments on commit c525b5e

Please sign in to comment.