Skip to content

Commit a8a9893

Browse files
committed
fix: call clear
1 parent cd6ebd8 commit a8a9893

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/handler/src/handler.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ pub trait Handler {
173173
self.reimburse_caller(evm, &mut exec_result)?;
174174
// Reward beneficiary
175175
self.reward_beneficiary(evm, &mut exec_result)?;
176-
// Returns output of transaction.
177-
self.output(evm, exec_result)
176+
// Prepare output of transaction.
177+
let output = self.output(evm, exec_result)?;
178+
// Clear any internal state.
179+
self.clear(evm);
180+
// Return output
181+
Ok(output)
178182
}
179183

180184
/* VALIDATION */

0 commit comments

Comments
 (0)