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.