Skip to content

Commit

Permalink
Merge pull request #3 from snreynolds/sra/eip1153
Browse files Browse the repository at this point in the history
transient storage should not persist across txns
  • Loading branch information
tynes committed Jul 6, 2022
2 parents cc076d2 + 7fc695b commit 0e5d88c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/state/state_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0e5d88c

Please sign in to comment.