From a8a9893b11c480a4f1c2fa8742d8ca60bf3d7ba4 Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Tue, 18 Feb 2025 19:30:30 +0400 Subject: [PATCH] fix: call clear --- crates/handler/src/handler.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/handler/src/handler.rs b/crates/handler/src/handler.rs index 3a3c9002cd..d17a562da9 100644 --- a/crates/handler/src/handler.rs +++ b/crates/handler/src/handler.rs @@ -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 */