From b5244c421466ed35e14eca7257140403dbe09f35 Mon Sep 17 00:00:00 2001 From: crosschainer <68580992+crosschainer@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:14:37 +0200 Subject: [PATCH] Update executor.py --- src/contracting/execution/executor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contracting/execution/executor.py b/src/contracting/execution/executor.py index 166c2d21..2fc97684 100644 --- a/src/contracting/execution/executor.py +++ b/src/contracting/execution/executor.py @@ -136,8 +136,7 @@ def execute(self, sender, contract_name, function_name, kwargs, result = e status_code = 1 - if auto_commit: - driver.flush_cache() + driver.flush_cache() # TODO: this is sketch, i changed this because it needs to remove all changes after failure finally: runtime.rt.tracer.stop()