From 7fc695bab4ae04722e5bfa12a8c070a97f726ea1 Mon Sep 17 00:00:00 2001 From: Sara Reynolds Date: Thu, 30 Jun 2022 18:56:36 -0400 Subject: [PATCH] transient storage should not persist across txns --- core/state/state_object.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/state/state_object.go b/core/state/state_object.go index 8ec76607700a..2f45da1a4e89 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -329,6 +329,9 @@ func (s *stateObject) finalise(prefetch bool) { if len(s.dirtyStorage) > 0 { s.dirtyStorage = make(Storage) } + if len(s.transientStorage) > 0 { + s.transientStorage = make(Storage) + } } // updateTrie writes cached storage modifications into the object's storage trie.