Skip to content

Commit

Permalink
fix: clear optimistic requires stored in FhevmData
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 committed Nov 10, 2023
1 parent 24ff2fc commit 73839a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhevm/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73839a6

Please sign in to comment.