From 73839a6f1c1feee7c4462a3414a4cd56ea9f46af Mon Sep 17 00:00:00 2001 From: youben11 Date: Fri, 10 Nov 2023 11:04:15 +0100 Subject: [PATCH] fix: clear optimistic requires stored in FhevmData --- fhevm/precompiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhevm/precompiles.go b/fhevm/precompiles.go index 7a9535a..b7a3162 100644 --- a/fhevm/precompiles.go +++ b/fhevm/precompiles.go @@ -2003,7 +2003,7 @@ func decryptValue(ct *tfheCiphertext) (uint64, error) { func evaluateRemainingOptimisticRequires(environment EVMEnvironment) (bool, error) { requires := environment.FhevmData().optimisticRequires len := len(requires) - defer func() { requires = make([]*tfheCiphertext, 0) }() + defer func() { environment.FhevmData().optimisticRequires = make([]*tfheCiphertext, 0) }() if len != 0 { var cumulative *tfheCiphertext = requires[0] var err error